aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-01-13 12:48:06 +0100
committerBjörn Gustavsson <[email protected]>2016-01-13 12:48:06 +0100
commit9c5c0a2169b1ac176fa9d66eab47c48ff8325a39 (patch)
treedfe7a32c6653e36a79573ac21054204a64eb6d1f /lib/compiler/test
parentba8092e372b324bc5053ed5bd4ec1ad4b4b737bf (diff)
parent5a874a9e58e09a894f36ab81a0eef46e1fc27cd0 (diff)
downloadotp-9c5c0a2169b1ac176fa9d66eab47c48ff8325a39.tar.gz
otp-9c5c0a2169b1ac176fa9d66eab47c48ff8325a39.tar.bz2
otp-9c5c0a2169b1ac176fa9d66eab47c48ff8325a39.zip
Merge branch 'maint'
* maint: 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.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/compiler/test/map_SUITE.erl b/lib/compiler/test/map_SUITE.erl
index b3cafe4ed9..af98584e00 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.