Describe the bug
$ erlc /tmp/bug.erl
/tmp/bug.erl: internal error in pass lint_module:
exception error: bad argument
in function atom_to_list/1
called as atom_to_list({a,2})
*** argument 1: not an atom
in call from erl_lint:check_module_name/3 (erl_lint.erl:4385)
in call from erl_lint:behaviour_callbacks/3 (erl_lint.erl:1521)
in call from erl_lint:all_behaviour_callbacks/3 (erl_lint.erl:1477)
in call from erl_lint:behaviour_check/2 (erl_lint.erl:1463)
in call from lists:foldl/3 (lists.erl:2465)
in call from erl_lint:module/3 (erl_lint.erl:892)
in call from compile:lint_module/2 (compile.erl:2299)
To Reproduce
https://godbolt.org/z/MGhGGe3e4
Expected behavior
<source>:1:12: bad attribute
% 1| -behaviour(x/2).
% | ^
Affected versions
All that I have tested, including
Describe the bug
To Reproduce
https://godbolt.org/z/MGhGGe3e4
Expected behavior
Affected versions
All that I have tested, including