aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2013-08-21 08:44:08 +0200
committerHans Bolinder <[email protected]>2013-08-21 08:44:08 +0200
commitfc964917d6de7ac583b2971697afb3bb417892ad (patch)
tree8cecb4b8cef9d406c66e8e5a2fed0be1a49182f2 /lib/stdlib/src
parentbabcd2b454b37f195721c501f014486e4c5617b2 (diff)
parent063dcba4b4e9e9848886efd039ed815bd5910ec1 (diff)
downloadotp-fc964917d6de7ac583b2971697afb3bb417892ad.tar.gz
otp-fc964917d6de7ac583b2971697afb3bb417892ad.tar.bz2
otp-fc964917d6de7ac583b2971697afb3bb417892ad.zip
Merge branch 'hb/stdlib/erl_lint_fix/OTP-11256' into maint
* hb/stdlib/erl_lint_fix/OTP-11256: Fix a bug in the linter regarding the 'fun M:F/A' construct
Diffstat (limited to 'lib/stdlib/src')
-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 08b8541014..8f07750b9b 100644
--- a/lib/stdlib/src/erl_lint.erl
+++ b/lib/stdlib/src/erl_lint.erl
@@ -3219,7 +3219,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) ->