@@ -431,18 +431,28 @@ add_info_function(Line, File, Module, All, Def, Defmacro) ->
431
431
true ->
432
432
elixir_errors :form_error ([{line , Line }], File , ? MODULE , {internal_function_overridden , Pair });
433
433
false ->
434
+ AllowedArgs =
435
+ lists :map (fun (Atom ) -> {atom , Line , Atom } end ,
436
+ [attributes , compile , exports , functions , macros , md5 , module , native_addresses ]),
434
437
Spec =
435
438
{attribute , Line , spec , {Pair ,
436
439
[{type , Line , 'fun' , [
437
440
{type , Line , product , [
438
- {type , Line , atom , [] }
441
+ {type , Line , union , AllowedArgs }
439
442
]},
440
443
{type , Line , union , [
441
444
{type , Line , atom , []},
442
445
{type , Line , list , [
443
- {type , Line , tuple , [
444
- {type , Line , atom , []},
445
- {type , Line , any , []}
446
+ {type , Line , union , [
447
+ {type , Line , tuple , [
448
+ {type , Line , atom , []},
449
+ {type , Line , any , []}
450
+ ]},
451
+ {type , Line , tuple , [
452
+ {type , Line , atom , []},
453
+ {type , Line , byte , []},
454
+ {type , Line , integer , []}
455
+ ]}
446
456
]}
447
457
]}
448
458
]}
0 commit comments