aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/map_SUITE.erl
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2014-03-11 00:39:21 +0100
committerBjörn-Egil Dahlberg <[email protected]>2014-03-18 14:39:28 +0100
commitca39d2c98507963f461adb78975e5adf35d6aafe (patch)
treeeeb6419e1ef637baae9608c4dbe08b3da5567304 /lib/compiler/test/map_SUITE.erl
parentaab1afa8a63081f2c30f83ebe8b6caaac979795c (diff)
downloadotp-ca39d2c98507963f461adb78975e5adf35d6aafe.tar.gz
otp-ca39d2c98507963f461adb78975e5adf35d6aafe.tar.bz2
otp-ca39d2c98507963f461adb78975e5adf35d6aafe.zip
Properly collect variables in map expressions in v3_core
Reported-by: José Valim
Diffstat (limited to 'lib/compiler/test/map_SUITE.erl')
-rw-r--r--lib/compiler/test/map_SUITE.erl12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/compiler/test/map_SUITE.erl b/lib/compiler/test/map_SUITE.erl
index b7e27afef1..90eae6fb4f 100644
--- a/lib/compiler/test/map_SUITE.erl
+++ b/lib/compiler/test/map_SUITE.erl
@@ -43,7 +43,8 @@
%% errors in 17.0-rc1
t_update_values/1,
- t_expand_map_update/1
+ t_expand_map_update/1,
+ t_export/1
]).
suite() -> [].
@@ -70,7 +71,8 @@ all() -> [
%% errors in 17.0-rc1
t_update_values,
- t_expand_map_update
+ t_expand_map_update,
+ t_export
].
groups() -> [].
@@ -285,6 +287,12 @@ t_expand_map_update(Config) when is_list(Config) ->
#{<<"hello">> := <<"les gens">>} = M,
ok.
+t_export(Config) when is_list(Config) ->
+ Raclette = id(#{}),
+ case brie of brie -> Fromage = Raclette end,
+ Raclette = Fromage#{},
+ ok.
+
check_val(#{val1:=V1, val2:=V2},V1,V2) -> ok.
get_val(#{ "wazzup" := _, val := V}) -> V;