[erlang-questions] Valid Erlang module?

Rohinton Kazak (rkazak) rohinton.kazak@REDACTED
Sun Apr 8 00:40:13 CEST 2018


Just curious to know if this is a valid Erlang module.

> cat mirror.erl 


mirror(Anything) -> Anything.

As when I try and compile it I get

1> c(mirror).
mirror.erl: internal error in lint_module;
crash reason: undef

  in function  sets:to_list/1
     called as sets:to_list([])
  in call from erl_lint:check_unused_records/2 (erl_lint.erl, line 1211)
  in call from erl_lint:post_traversal_check/2 (erl_lint.erl, line 901)
  in call from erl_lint:module/3 (erl_lint.erl, line 534)
  in call from compile:lint_module/2 (compile.erl, line 1111)
  in call from compile:'-internal_comp/5-anonymous-1-'/3 (compile.erl, line 342)
  in call from compile:fold_comp/4 (compile.erl, line 369)
  in call from compile:internal_comp/5 (compile.erl, line 353)

Thanks in advance!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180407/cbc0e619/attachment.htm>

More information about the erlang-questions mailing list