[erlang-bugs] Negative integer literals as map keys

Alexey Lebedeff binarin@REDACTED
Wed Apr 30 15:32:42 CEST 2014


Hi,

As soon as I add unary minus anywhere in a map key, it breaks with "illegal
map key" message:

Erlang/OTP 17 [erts-6.0] [source-07b8f44] [64-bit] [smp:8:8]
[async-threads:10] [hipe] [kernel-poll:false]
Eshell V6.0  (abort with ^G)
3> #{ -1 => 1}.
* 1: illegal map key
4> #{ {a, -1} => 1 }.
* 1: illegal map key
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140430/42999c06/attachment.htm>


More information about the erlang-bugs mailing list