Skip to content

Commit a63e319

Browse files
committed
Merge branch 'frazze/stdlib/shell_local_fun_reference_bug' into maint
* frazze/stdlib/shell_local_fun_reference_bug: stdlib: fix anno bug when referencing local function OTP-19850
2 parents 13eb0c5 + 9a2e8e1 commit a63e319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/stdlib/src/shell.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,9 @@ get_command(Prompt, Eval, Bs, RT, FT, Ds) ->
414414
LocalFunFixer = fun F([{'fun',Anno}=A,{atom,_,Func}=B,{'/',_}=C,{integer,_,Arity}=D| Rest],Acc) ->
415415
case erl_internal:bif(Func, Arity) of
416416
true ->
417-
F(Rest, [D,C,B,{':',A},{atom,Anno,'erlang'},A | Acc]);
417+
F(Rest, [D,C,B,{':',Anno},{atom,Anno,'erlang'},A | Acc]);
418418
false ->
419-
F(Rest, [D,C,B,{':',A},{atom,Anno,'shell_default'},A | Acc])
419+
F(Rest, [D,C,B,{':',Anno},{atom,Anno,'shell_default'},A | Acc])
420420
end;
421421
F([H|Rest], Acc) ->
422422
F(Rest, [H | Acc]);

0 commit comments

Comments
 (0)