diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-03-25 18:01:07 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-03-25 18:01:07 +0100 |
commit | 9e01993aac2cc35c77e5e246ed6e160c3485a456 (patch) | |
tree | 53df30499e69545f0b121723fc1131604b6c1f42 /lib | |
parent | 333f03952f76ed15986eeabb9a386904521821ee (diff) | |
download | otp-9e01993aac2cc35c77e5e246ed6e160c3485a456.tar.gz otp-9e01993aac2cc35c77e5e246ed6e160c3485a456.tar.bz2 otp-9e01993aac2cc35c77e5e246ed6e160c3485a456.zip |
compiler: Variable keys are not allowed in Maps
No need to check for variables in Map keys.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compiler/src/v3_kernel.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compiler/src/v3_kernel.erl b/lib/compiler/src/v3_kernel.erl index d3b785aa14..40d2f72b4c 100644 --- a/lib/compiler/src/v3_kernel.erl +++ b/lib/compiler/src/v3_kernel.erl @@ -581,8 +581,7 @@ map_key_clean(#k_literal{val=V}) -> {k_literal,V}; map_key_clean(#k_int{val=V}) -> {k_int,V}; map_key_clean(#k_float{val=V}) -> {k_float,V}; map_key_clean(#k_atom{val=V}) -> {k_atom,V}; -map_key_clean(#k_nil{}) -> k_nil; -map_key_clean(#k_var{name=V}) -> {k_var,V}. +map_key_clean(#k_nil{}) -> k_nil. %% call_type(Module, Function, Arity) -> call | bif | apply | error. |