Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
__MODULE__ doesn't give the current module with -o #6857
Original bug ID: 6857
MODULE appears to be [String.capitalize (String.chop_suffix FILE)], which is not the current module when using -o to set a module name different than the current file name.
But its documentation is:
So it looks like either the compiler or the documentation should be fixed (and preferably the compiler I think).
Steps to reproduce
These commands should output "Foo" twice but instead output "A" and "Argh".