firefly icon indicating copy to clipboard operation
firefly copied to clipboard

-type module attribute may (optionally) use parentheses

Open KronicDeth opened this issue 5 years ago • 0 comments

EIR parser does not support -type module attribute if it uses parentheses like

-type(chars() :: [char() | any()]).

vs the more common

-type chars() :: [char() | any()].

Affects the following files in OTP:

  • lib/eunit/src/eunit_surefire.erl
  • lib/kernel/src/application.erl
  • lib/stdlib/src/erl_eval.erl
  • lib/stdlib/src/file_sorter.erl
  • lib/stdlib/src/qlc.erl
  • lib/stdlib/src/sofs.erl

KronicDeth avatar Sep 24 '20 18:09 KronicDeth