aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/erl_lint.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2013-08-21 08:46:01 +0200
committerHans Bolinder <[email protected]>2013-08-21 08:46:01 +0200
commitcd7846186bd1d5f2649e9e0d7d9f61ec35175f39 (patch)
tree20b078803300a57f173c7a57461cad63f156de3b /lib/stdlib/src/erl_lint.erl
parentea820836ec6832a45f55d45e14f4dc68a6b2f646 (diff)
parentfc964917d6de7ac583b2971697afb3bb417892ad (diff)
downloadotp-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.erl3
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) ->