diff options
author | Hans Bolinder <[email protected]> | 2013-08-21 08:46:01 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2013-08-21 08:46:01 +0200 |
commit | cd7846186bd1d5f2649e9e0d7d9f61ec35175f39 (patch) | |
tree | 20b078803300a57f173c7a57461cad63f156de3b /lib/stdlib/src/erl_lint.erl | |
parent | ea820836ec6832a45f55d45e14f4dc68a6b2f646 (diff) | |
parent | fc964917d6de7ac583b2971697afb3bb417892ad (diff) | |
download | otp-cd7846186bd1d5f2649e9e0d7d9f61ec35175f39.tar.gz otp-cd7846186bd1d5f2649e9e0d7d9f61ec35175f39.tar.bz2 otp-cd7846186bd1d5f2649e9e0d7d9f61ec35175f39.zip |
Merge branch 'maint'
* maint:
Fix a bug in the linter regarding the 'fun M:F/A' construct
Diffstat (limited to 'lib/stdlib/src/erl_lint.erl')
-rw-r--r-- | lib/stdlib/src/erl_lint.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stdlib/src/erl_lint.erl b/lib/stdlib/src/erl_lint.erl index 573b05e4e2..b6ab39251a 100644 --- a/lib/stdlib/src/erl_lint.erl +++ b/lib/stdlib/src/erl_lint.erl @@ -3238,7 +3238,8 @@ modify_line(T, F0) -> %% Forms. modify_line1({function,F,A}, _Mf) -> {function,F,A}; -modify_line1({function,M,F,A}, _Mf) -> {function,M,F,A}; +modify_line1({function,M,F,A}, Mf) -> + {function,modify_line1(M, Mf),modify_line1(F, Mf),modify_line1(A, Mf)}; modify_line1({attribute,L,record,{Name,Fields}}, Mf) -> {attribute,Mf(L),record,{Name,modify_line1(Fields, Mf)}}; modify_line1({attribute,L,spec,{Fun,Types}}, Mf) -> |