-deprecated module attribute needs to support underscore for both function and arity to say the whole module is deprecated
KronicDeth opened this issue · 0 comments
KronicDeth commented
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