diff options
author | Björn Gustavsson <[email protected]> | 2016-01-13 12:31:36 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-01-13 12:31:36 +0100 |
commit | 5a874a9e58e09a894f36ab81a0eef46e1fc27cd0 (patch) | |
tree | 7f1b120b479fc1b6c9ecef81ba62bbe7cd670f08 /lib/compiler/test | |
parent | 72d6687a6514c6cd2e0af5b67760b5f83f62915c (diff) | |
parent | ff2ef4278045c985738e3ddb4af6127c7db933e7 (diff) | |
download | otp-5a874a9e58e09a894f36ab81a0eef46e1fc27cd0.tar.gz otp-5a874a9e58e09a894f36ab81a0eef46e1fc27cd0.tar.bz2 otp-5a874a9e58e09a894f36ab81a0eef46e1fc27cd0.zip |
Merge branch 'bjorn/compiler/map-bug/OTP-13231' into maint
* bjorn/compiler/map-bug/OTP-13231:
Fix crash when attempting to update a fun as if it were a map
Diffstat (limited to 'lib/compiler/test')
-rw-r--r-- | lib/compiler/test/map_SUITE.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/compiler/test/map_SUITE.erl b/lib/compiler/test/map_SUITE.erl index 411b15eebe..cff3b5deb4 100644 --- a/lib/compiler/test/map_SUITE.erl +++ b/lib/compiler/test/map_SUITE.erl @@ -883,6 +883,9 @@ t_update_map_expressions(Config) when is_list(Config) -> %% Error cases. {'EXIT',{{badmap,<<>>},_}} = (catch (id(<<>>))#{ a := 42, b => 2 }), {'EXIT',{{badmap,[]},_}} = (catch (id([]))#{ a := 42, b => 2 }), + {'EXIT',{{badmap,_},_}} = + (catch (fun t_update_map_expressions/1)#{u => 42}), + ok. |