diff options
author | Björn Gustavsson <[email protected]> | 2014-11-17 16:08:50 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-11-17 16:08:50 +0100 |
commit | 761e1318abdaee269be8cdcbb6b3e6f5d3f2a65d (patch) | |
tree | 67080cc8dab9cb633ca04b804edeed59796a7a2f /lib/stdlib/src | |
parent | dad49788a71fa6d7ea5d0515e87d87f9e68debe5 (diff) | |
parent | d9c3d4eed173e34e3651d6a9f8790c6fa573574c (diff) | |
download | otp-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.erl | 4 |
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) -> |