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
-- [E056] SyntaxError: tests/run/fully-abstract-nat-8.scala:6:29--------------6|defsuccDeco(succ: Nat):SuccAPI=newSuccAPI[Int](???)
|^^^^^^^| missing typeparameterforNumbers.SuccAPI
assertion failure forNumbers.SuccAPI<:<?{ pred: ? }, frozen =false
exception occurred while typechecking tests/run/fully-abstract-nat-8.scala
exception occurred while compiling tests/run/fully-abstract-nat-8.scala
Exception in thread "main" java.lang.AssertionError: assertion failed: invalid prefix HKTypeLambda(List(X), List(TypeBounds(TypeRef(ThisType(TypeRef(NoPrefix,module classscala)),classNothing),TypeRef(ThisType(TypeRef(NoPrefix,module classscala)),classAny))), AppliedType(TypeRef(ThisType(TypeRef(ThisType(TypeRef(NoPrefix,module class<empty>)),module classNumbers$)),classSuccAPI),List(TypeParamRef(X))))
at scala.Predef$.assert(Predef.scala:219)
at dotty.tools.dotc.core.Types$NamedType.<init>(Types.scala:1592)
at dotty.tools.dotc.core.Types$TermRef.<init>(Types.scala:2085)
at dotty.tools.dotc.core.Types$CachedTermRef.<init>(Types.scala:2124)
at dotty.tools.dotc.core.Uniques$NamedTypeUniques.newType$1(Uniques.scala:60)
at dotty.tools.dotc.core.Uniques$NamedTypeUniques.enterIfNew(Uniques.scala:65)
at dotty.tools.dotc.core.Types$TermRef$.apply(Types.scala:2155)
at dotty.tools.dotc.core.Types$TermRef$.apply(Types.scala:2161)
at dotty.tools.dotc.core.Types$NamedType$.apply(Types.scala:2147)
at dotty.tools.dotc.core.Types$NamedType.reload$1(Types.scala:2035)
at dotty.tools.dotc.core.Types$NamedType.withPrefix(Types.scala:2042)
at dotty.tools.dotc.core.Types$NamedType.derivedSelect(Types.scala:2002)
at dotty.tools.dotc.core.Types$TypeMap.derivedSelect(Types.scala:3925)
at dotty.tools.dotc.core.Types$ApproximatingTypeMap.derivedSelect(Types.scala:4197)
at dotty.tools.dotc.core.TypeOps$AsSeenFromMap.$anonfun$apply$4(TypeOps.scala:61)
at dotty.tools.dotc.reporting.trace$.op1$1(trace.scala:18)
at dotty.tools.dotc.reporting.trace$.conditionally(trace.scala:20)
at dotty.tools.dotc.core.TypeOps$AsSeenFromMap.apply(TypeOps.scala:54)
at dotty.tools.dotc.core.TypeOps$AsSeenFromMap.$anonfun$apply$5(TypeOps.scala:61)
at dotty.tools.dotc.core.Types$VariantTraversal.atVariance(Types.scala:3911)
at dotty.tools.dotc.core.TypeOps$AsSeenFromMap.$anonfun$apply$4(TypeOps.scala:61)
at dotty.tools.dotc.reporting.trace$.op1$1(trace.scala:18)
at dotty.tools.dotc.reporting.trace$.conditionally(trace.scala:20)
at dotty.tools.dotc.core.TypeOps$AsSeenFromMap.apply(TypeOps.scala:54)
at dotty.tools.dotc.core.Types$TypeMap.mapOver(Types.scala:4013)
at dotty.tools.dotc.core.TypeOps$AsSeenFromMap.$anonfun$apply$4(TypeOps.scala:67)
at dotty.tools.dotc.reporting.trace$.op1$1(trace.scala:18)
at dotty.tools.dotc.reporting.trace$.conditionally(trace.scala:20)
at dotty.tools.dotc.core.TypeOps$AsSeenFromMap.apply(TypeOps.scala:54)
at dotty.tools.dotc.core.TypeOps.asSeenFrom(TypeOps.scala:28)
...
The text was updated successfully, but these errors were encountered:
crashes the compiler after an error is emitted
The text was updated successfully, but these errors were encountered: