type attribute pp bug

Tony Rogvall tony@REDACTED
Fri Nov 6 15:47:39 CET 2009


Found a "small" bug in erl_pp handling of the type declaration.
The "code" compiles, but with  -E flag will result in a crash.


-type foo() :: integer().

 > erlc -E type_bug.erl

./type_bug.erl:none: internal error in listing;
crash reason: {function_clause,
./type_bug.erl:4: Warning: type foo() is unused


More information about the erlang-questions mailing list