Closed
Description
trait i0 {
trait i1 extends Throwable { false }
}
trait i0 {
trait I1 extends Throwable { val I1 = () }
}
AE-594286f761bd42e1a08dcf622a50ff3015c0b113
exception occurred while compiling test.scala
java.lang.AssertionError: assertion failed: asTerm called on not-a-Term val <none> while compiling test.scala
Exception in thread "main" java.lang.AssertionError: assertion failed: asTerm called on not-a-Term val <none>
at scala.Predef$.assert(Predef.scala:223)
at dotty.tools.dotc.core.Symbols$Symbol.asTerm(Symbols.scala:520)
at dotty.tools.dotc.ast.tpd$.New(tpd.scala:438)
at dotty.tools.dotc.transform.ExplicitOuter.$anonfun$transformTemplate$4(ExplicitOuter.scala:108)
at scala.collection.immutable.List.map(List.scala:286)
at dotty.tools.dotc.transform.ExplicitOuter.transformTemplate(ExplicitOuter.scala:102)
at dotty.tools.dotc.transform.MegaPhase.goTemplate(MegaPhase.scala:971)
at dotty.tools.dotc.transform.MegaPhase.transformUnnamed$1(MegaPhase.scala:340)
at dotty.tools.dotc.transform.MegaPhase.transformTree(MegaPhase.scala:396)
at dotty.tools.dotc.transform.MegaPhase.transformNamed$1(MegaPhase.scala:251)
at dotty.tools.dotc.transform.MegaPhase.transformTree(MegaPhase.scala:394)
at dotty.tools.dotc.transform.MegaPhase.transformStat$1(MegaPhase.scala:404)
at dotty.tools.dotc.transform.MegaPhase.$anonfun$transformStats$2(MegaPhase.scala:409)
at scala.collection.immutable.List.mapConserve(List.scala:179)