diff options
author | Björn Gustavsson <[email protected]> | 2014-11-17 16:18:24 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-11-17 16:18:24 +0100 |
commit | c85746b2fa2780435051611caa87639c770a4d91 (patch) | |
tree | 3c6f91940e275a51adbf7b970b4c30001bae9e67 /lib/stdlib/src/ms_transform.erl | |
parent | 2045ebf21c428711c55edddbc93ec8d024d47020 (diff) | |
parent | 761e1318abdaee269be8cdcbb6b3e6f5d3f2a65d (diff) | |
download | otp-c85746b2fa2780435051611caa87639c770a4d91.tar.gz otp-c85746b2fa2780435051611caa87639c770a4d91.tar.bz2 otp-c85746b2fa2780435051611caa87639c770a4d91.zip |
Merge branch 'maint'
* maint:
Fix miscompilation when module contains multiple named funs
Fix locations of shadowing warnings in ms_transform
Diffstat (limited to 'lib/stdlib/src/ms_transform.erl')
-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 e671dcd8cf..7b6f4e5b50 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) -> |