You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it should compile cleanly, but instead the compiler fails with
ERROR: Internal compiler error: java.lang.ClassCastException: org.mirah.jvm.mirrors.MirrorProxy cannot be cast to org.mirah.jvm.mirrors.BaseType org.mirah.jvm.mirrors.MirrorProxy cannot be cast to org.mirah.jvm.mirrors.BaseType. Rerun in verbose mode for stacktrace.
Exception in thread "main" org.mirah.jvm.compiler.ReportedException: java.lang.ClassCastException: org.mirah.jvm.mirrors.MirrorProxy cannot be cast to org.mirah.jvm.mirrors.BaseType
at org.mirah.jvm.mirrors.SafeTyper.betterException(safe_typer.mirah:72)
at org.mirah.jvm.mirrors.SafeTyper.betterException(safe_typer.mirah:58)
at org.mirah.jvm.mirrors.SafeTyper.finish_closures(safe_typer.mirah:55)
at org.mirah.tool.MirahCompiler.infer(mirah_compiler.mirah:175)
at org.mirah.tool.MirahTool.compile(mirah_tool.mirah:107)
at org.mirah.tool.Mirahc.main(mirahc.mirah:34)
at org.mirah.MirahCommand.compile(mirah_command.mirah:27)
at org.mirah.MirahCommand.main(mirah_command.mirah:43)
Caused by: java.lang.ClassCastException: org.mirah.jvm.mirrors.MirrorProxy cannot be cast to org.mirah.jvm.mirrors.BaseType
at org.mirah.typer.BetterClosureBuilder.build_methods_for(better_closures.mirah:1028)
at org.mirah.typer.BetterClosureBuilder.build_and_inject_methods(better_closures.mirah:1100)
at org.mirah.typer.BetterClosureBuilder.finish(better_closures.mirah:504)
at org.mirah.typer.Typer.finish_closures(typer.mirah:75)
at org.mirah.jvm.mirrors.SafeTyper.finish_closures(safe_typer.mirah:53)
... 5 more
Consider this Mirah code:
it should compile cleanly, but instead the compiler fails with
Note that the related code
compiles and runs fine.
The text was updated successfully, but these errors were encountered: