<p dir="ltr">It is possible to compile .erl code with module different from file name.</p>
<p dir="ltr">In <br>
<a href="http://www.erlang.org/doc/man/compile.html">http://www.erlang.org/doc/man/compile.html</a></p>
<p dir="ltr">Search for </p>
<p dir="ltr"><b>no_error_module_mismatch</b></p>