New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiler error when class having macros is abstract #320
Comments
Further analysis reveals that ClassCleanup is applied twice to class C2, once in mirah/src/org/mirah/typer/typer.mirah Line 196 in edacd65
mirah/src/org/mirah/typer/typer.mirah Line 212 in edacd65
as evidenced by these 2 stack traces:
as well as
The empty lines highlight the difference between these stack traces. Apparently, the Typer visits the ClassDefinition once when it is a parameter to the call of the "abstract" macro, and once when it is a return value to the call of the "abstract" macro. |
Consider this code
it should compile successfully. But the current mirah compiler yields
Related code
compiles successfully, as does
The text was updated successfully, but these errors were encountered: