aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-11-17 16:08:50 +0100
committerBjörn Gustavsson <[email protected]>2014-11-17 16:08:50 +0100
commit761e1318abdaee269be8cdcbb6b3e6f5d3f2a65d (patch)
tree67080cc8dab9cb633ca04b804edeed59796a7a2f /lib/stdlib/src
parentdad49788a71fa6d7ea5d0515e87d87f9e68debe5 (diff)
parentd9c3d4eed173e34e3651d6a9f8790c6fa573574c (diff)
downloadotp-761e1318abdaee269be8cdcbb6b3e6f5d3f2a65d.tar.gz
otp-761e1318abdaee269be8cdcbb6b3e6f5d3f2a65d.tar.bz2
otp-761e1318abdaee269be8cdcbb6b3e6f5d3f2a65d.zip
Merge branch 'nox/stdlib/ms_transform-locate-shadow-warning/OTP-12264' into maint
* nox/stdlib/ms_transform-locate-shadow-warning/OTP-12264: Fix locations of shadowing warnings in ms_transform
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/ms_transform.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/ms_transform.erl b/lib/stdlib/src/ms_transform.erl
index 27dfcf52e1..97564e2e44 100644
--- a/lib/stdlib/src/ms_transform.erl
+++ b/lib/stdlib/src/ms_transform.erl
@@ -725,10 +725,10 @@ transform_head([V],OuterBound) ->
th(NewV,NewBind,OuterBound).
-toplevel_head_match({match,Line,{var,_,VName},Expr},B,OB) ->
+toplevel_head_match({match,_,{var,Line,VName},Expr},B,OB) ->
warn_var_clash(Line,VName,OB),
{Expr,new_bind({VName,'$_'},B)};
-toplevel_head_match({match,Line,Expr,{var,_,VName}},B,OB) ->
+toplevel_head_match({match,_,Expr,{var,Line,VName}},B,OB) ->
warn_var_clash(Line,VName,OB),
{Expr,new_bind({VName,'$_'},B)};
toplevel_head_match(Other,B,_OB) ->