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
Simple variable declarations in or expressions are handled properly: int x := 1 || int x := 2 is ok and does not produce a double declaration error for x.
To Reproduce
The following examples all give a double declaration error for x:
Describe the bug
Simple variable declarations in or expressions are handled properly:
int x := 1 || int x := 2
is ok and does not produce a double declaration error forx
.To Reproduce
The following examples all give a double declaration error for
x
:value main() = {*int x} := {1,2,3} || {*int x} := {10,20,30};
value main() = [+int x] := [1,2,3] || [+int x] := [10,20,30];
value main() = [*int x] := [1,2,3] || [*int x] := [10,20,30];
value main() = [+int x] := [1,2,3] || [+int x] := [10,20,30];
value main() = [int x: 1] := [1] || [int x: 10] := [10];
Expected behavior
All the above examples are acceptable and should not generate an error
The text was updated successfully, but these errors were encountered: