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
Unexpected tree in genLoad: Inlined(Ident(DottyPredef$),List(),Apply(Ident(i),List()))/class dotty.tools.dotc.ast.Trees$Inlined at: <108..123>
java.lang.RuntimeException: Unexpected tree in genLoad: Inlined(Ident(DottyPredef$),List(),Apply(Ident(i),List()))/class dotty.tools.dotc.ast.Trees$Inlined at: <108..123>
at dotty.tools.backend.jvm.DottyBackendInterface.abort(DottyBackendInterface.scala:390)
at dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoad(BCodeBodyBuilder.scala:431)
at dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genArray(BCodeBodyBuilder.scala:842)
at dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genArrayValue(BCodeBodyBuilder.scala:827)
at dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoad(BCodeBodyBuilder.scala:420)
at dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.$anonfun$genLoadArguments$1(BCodeBodyBuilder.scala:1051)
at dotty.tools.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.$anonfun$genLoadArguments$1$adapted(BCodeBodyBuilder.scala:1051)
at scala.collection.immutable.List.foreach(List.scala:392)
...
The problem goes away if the implicitly summoned argument is assigned to a val first, or if the array creation is replaced by a call to a vanilla polymorphic method.
The text was updated successfully, but these errors were encountered:
dropInlined fails to remove an inlined in the SeqLiteral. I tried to fix it but I could not understand the logic in dropInlined#transformed to do this with confidence. It would help if the transformed method was better documented. What does it do exactly? Why treat the cases it does and not others?
The following crashes the compiler during code generation,
The problem goes away if the implicitly summoned argument is assigned to a val first, or if the array creation is replaced by a call to a vanilla polymorphic method.
The text was updated successfully, but these errors were encountered: