Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve "Name already defined" error message #5067
In many cases, the code doesn't pass anything for this argument, even though there is an original context that makes sense. This PR does this for the
A few questions if you guys think this is a good idea:
So my code is failing on two tests because it's reporting the wrong line numbers. For imports,
Is anyone familiar with this issue? It seems like I either need to detect that the original definition was an import, and don't report a line number, or maybe somehow figure out on which line the import happened.
It looks like when
So it seems that the options are either:
Which would be the right thing to do? cc @JelleZijlstra
Thank you for working on this! The more detailed errors look definitely better.