Describe the bug
Given the following module:
-module(test).
-export([test/0]).
test() ->
#{A => B || X <- [1, 5], {A, B} <- [{X, X+1}, {X, X+3}]}.
Running in a shell:
1> c(test).
{ok,test}
2> test:test().
#{1 => 4,5 => 8}
3> #{A => B || X <- [1, 5], {A, B} <- [{X, X+1}, {X, X+3}]}.
#{1 => 2,5 => 6}
Expected behavior
I'm not actually sure which result is correct - I expect the one from compiled code. Either way, the two should agree
Affected versions
Tested on latest master