firefly icon indicating copy to clipboard operation
firefly copied to clipboard

-deprecated module attribute needs to support underscore for both function and arity to say the whole module is deprecated

Open KronicDeth opened this issue 5 years ago • 0 comments

In lib/kernel/src/pg2.erl

-deprecated([{'_','_',"use 'pg' instead"}]).

but the compiler currently thinks the second element of the tuple (so the arity) must be an integer

stderr:    Compiling /Users/runner/work/lumen/otp/lib/kernel/src/pg2.erl
 error: unrecognized token
    ┌─ /Users/runner/work/lumen/otp/lib/kernel/src/pg2.erl:28:22
    │
 28 │ -deprecated([{'_','_',"use 'pg' instead"}]).
    │                      ^ expected: int
 

KronicDeth avatar Sep 24 '20 19:09 KronicDeth