@@ -293,7 +293,7 @@ expand({'&', Meta, [{'/', ArityMeta, [{super, SuperMeta, Context}, Arity]} = Exp
293293
294294 case resolve_super (Meta , Arity , E ) of
295295 {Kind , Name , _ } when Kind == def ; Kind == defp ->
296- {{ '&' , Meta , [{'/' , ArityMeta , [{Name , SuperMeta , Context }, Arity ]}]}, S , E } ;
296+ expand ({ '&' , Meta , [{'/' , ArityMeta , [{Name , SuperMeta , Context }, Arity ]}]}, S , E ) ;
297297 _ ->
298298 expand_fn_capture (Meta , Expr , S , E )
299299 end ;
@@ -343,7 +343,9 @@ expand({with, Meta, [_ | _] = Args}, S, E) ->
343343
344344expand ({super , Meta , Args }, S , E ) when is_list (Args ) ->
345345 assert_no_match_or_guard_scope (Meta , " super" , S , E ),
346- {Kind , Name , _ } = resolve_super (Meta , length (Args ), E ),
346+ Arity = length (Args ),
347+ {Kind , Name , _ } = resolve_super (Meta , Arity , E ),
348+ elixir_env :trace ({local_function , Meta , Name , Arity }, E ),
347349 {EArgs , SA , EA } = expand_args (Args , S , E ),
348350 {{super , [{super , {Kind , Name }} | Meta ], EArgs }, SA , EA };
349351
@@ -899,8 +901,7 @@ expand_local(Meta, Name, Args, S, #{function := Function, context := Context} =
899901 module_error (Meta , E , ? MODULE , {invalid_local_invocation , elixir_utils :guard_info (S ), {Name , Meta , Args }});
900902
901903 nil ->
902- Arity = length (Args ),
903- elixir_env :trace ({local_function , Meta , Name , Arity }, E )
904+ elixir_env :trace ({local_function , Meta , Name , length (Args )}, E )
904905 end ,
905906
906907 {EArgs , SA , EA } = expand_args (Args , S , E ),
0 commit comments