You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ erlc scopes.erl
scopes.erl:7:6: Warning: no clause will ever match
% 7| (X = 3)
% | ^
scopes.erl:7:6: Warning: this clause cannot match because its guard evaluates to 'false'
% 7| (X = 3)
% | ^
$ erl
1> scopes:scope1().
** exception error: no match of right hand side value 3
in function scopes:scope1/0 (scopes.erl, line 7)
2> scopes:scope2().
{4,3}
Expected behavior
The same behavior for scope1 and scope2. It seems that X is scoped differently under the hood in the 2 functions.
Affected versions
25.1
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
(A continuation of #6141)
Describe the bug
Scoping of variables (and whether a variable is already bound or not) is not stable
To Reproduce
Expected behavior
The same behavior for
scope1
andscope2
. It seems thatX
is scoped differently under the hood in the 2 functions.Affected versions
25.1
The text was updated successfully, but these errors were encountered: