Summary: In map expressions, associations of the form `K := V` should only be accepted if it is a map update (expression is not empty), and should not be accepted for map creation. This is because such associations check if the key actually exist, which obviously does not hold during map creation. See also [documentation](https://erlang.org/doc/apps/erts/absform.html#expressions). We already had this check for maps in guards, but forgot to include it for maps in expressions. Fixed it now. Reviewed By: rgrig Differential Revision: D30103350 fbshipit-source-id: 39973a137master
parent
f90153b428
commit
8efc8b637c
Loading…
Reference in new issue