diff options
author | Björn-Egil Dahlberg <egil@erlang.org> | 2013-10-09 16:37:58 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <egil@erlang.org> | 2014-01-28 15:56:30 +0100 |
commit | f00675d3c682f53824e23f1599cbb09ff2d57daa (patch) | |
tree | d86b3f4610cf2712e064920cac56098f41b8a3d7 /erts/emulator | |
parent | e9a3d0b6533b72cba3d4e7ea129f835e80bd2647 (diff) | |
download | otp-f00675d3c682f53824e23f1599cbb09ff2d57daa.tar.gz otp-f00675d3c682f53824e23f1599cbb09ff2d57daa.tar.bz2 otp-f00675d3c682f53824e23f1599cbb09ff2d57daa.zip |
stdlib: Deny variables as keys and disallow ':=' in map construction
In the current iteration of Maps we should deny *any* variables in
Map keys.
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/test/map_SUITE.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/test/map_SUITE.erl b/erts/emulator/test/map_SUITE.erl index 1f4476defa..327e9b8060 100644 --- a/erts/emulator/test/map_SUITE.erl +++ b/erts/emulator/test/map_SUITE.erl @@ -327,7 +327,7 @@ guard_receive_loop() -> t_list_comprehension(Config) when is_list(Config) -> - [#{k:=1},#{k:=2},#{k:=3}] = [#{k:=I} || I <- [1,2,3]], + [#{k:=1},#{k:=2},#{k:=3}] = [#{k=>I} || I <- [1,2,3]], ok. t_guard_fun(Config) when is_list(Config) -> |