Open
Description
Description
I'm in the process of migrating some internal services to Scala 3.
In code, that should generate some config readers, the compiler crashes.
The given instance exportReader is declared as
inline, but was not inlined
error can not be fixed by increasing -Xmax-inlines
,
but the actual crash comes after: java.lang.AssertionError: assertion failed: method *: in trait Tuple
Compiler version
3.3.4 and 3.6.3
Minimized code
//> using dep com.github.pureconfig::pureconfig-core:0.17.8
//> using dep com.github.pureconfig::pureconfig-generic-scala3:0.17.8
import pureconfig.*
import pureconfig.generic.*
import pureconfig.generic.semiauto.*
import scala.deriving.Mirror
inline given exportReader[A: Mirror.Of]: Exported[ConfigReader[A]] = Exported(deriveReader[A])
val config = ConfigSource.string("{ test: { matchers: [ { rules: [ { something: \"foo\" } ] }] } }")
case class Rule(something: Option[String])
case class Matchers(rules: List[Rule])
case class Settings(matchers: List[Matchers])
class Consumer(settings: Settings)
val c: Consumer = {
val settings = config.at("test").loadOrThrow[Settings]
new Consumer(settings)
}
Output (click arrow to expand)
-- Error: /home/ben/.scala-build/ben_ef31ba4fc4-6820637c46/src_generated/main/repro.scala:26:56
26 | val settings = config.at("test").loadOrThrow[Settings]
| ^
|given instance exportReader is declared as `inline`, but was not inlined
|
|Try increasing `-Xmax-inlines` above 32
|----------------------------------------------------------------------------
|Inline stack trace
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareConfigReaderDerivation.scala:21
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareConfigReaderDerivation.scala:21
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareConfigReaderDerivation.scala:21
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareConfigReaderDerivation.scala:21
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareConfigReaderDerivation.scala:21
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareConfigReaderDerivation.scala:21
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareConfigReaderDerivation.scala:21
15 |inline given exportReader[A: Mirror.Of]: Exported[ConfigReader[A]] = Exported(deriveReader[A])
| ^^^^^^^^^^^^^^^
----------------------------------------------------------------------------
-- Error: /home/ben/.scala-build/ben_ef31ba4fc4-6820637c46/src_generated/main/repro.scala:26:56
26 | val settings = config.at("test").loadOrThrow[Settings]
| ^
| method readCaseClass is declared as `inline`, but was not inlined
|
| Try increasing `-Xmax-inlines` above 32
|----------------------------------------------------------------------------
|Inline stack trace
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareProductConfigReaderDerivation.scala:79
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareProductConfigReaderDerivation.scala:79
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareProductConfigReaderDerivation.scala:79
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareProductConfigReaderDerivation.scala:79
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareProductConfigReaderDerivation.scala:79
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareProductConfigReaderDerivation.scala:79
15 |inline given exportReader[A: Mirror.Of]: Exported[ConfigReader[A]] = Exported(deriveReader[A])
| ^^^^^^^^^^^^^^^
----------------------------------------------------------------------------
-- Error: /home/ben/.scala-build/ben_ef31ba4fc4-6820637c46/src_generated/main/repro.scala:26:56
26 | val settings = config.at("test").loadOrThrow[Settings]
| ^
| method widen is declared as `inline`, but was not inlined
|
| Try increasing `-Xmax-inlines` above 32
|----------------------------------------------------------------------------
|Inline stack trace
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareProductConfigReaderDerivation.scala:81
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareProductConfigReaderDerivation.scala:81
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareProductConfigReaderDerivation.scala:81
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareProductConfigReaderDerivation.scala:81
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareProductConfigReaderDerivation.scala:81
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from HintsAwareProductConfigReaderDerivation.scala:81
15 |inline given exportReader[A: Mirror.Of]: Exported[ConfigReader[A]] = Exported(deriveReader[A])
| ^^^^^^^^^^^^^^^
----------------------------------------------------------------------------
unhandled exception while running erasure on /home/ben/.scala-build/ben_ef31ba4fc4-6820637c46/src_generated/main/repro.scala
An unhandled exception was thrown in the compiler.
Please file a crash report here:
https://github.com/scala/scala3/issues/new/choose
For non-enriched exceptions, compile with -Xno-enrich-error-messages.
while compiling: /home/ben/.scala-build/ben_ef31ba4fc4-6820637c46/src_generated/main/repro.scala
during phase: erasure
mode: Mode(ImplicitsEnabled)
library version: version 2.13.14
compiler version: version 3.5.2
settings: -classpath /home/ben/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.5.2/scala3-library_3-3.5.2.jar:/home/ben/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/pureconfig/pureconfig-core_3/0.17.8/pureconfig-core_3-0.17.8.jar:/home/ben/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/pureconfig/pureconfig-generic-scala3_3/0.17.8/pureconfig-generic-scala3_3-0.17.8.jar:/home/ben/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.14/scala-library-2.13.14.jar:/home/ben/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/config/1.4.3/config-1.4.3.jar:/home/ben/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/pureconfig/pureconfig-generic-base_3/0.17.8/pureconfig-generic-base_3-0.17.8.jar -d /home/ben/.scala-build/ben_ef31ba4fc4-6820637c46/classes/main -sourceroot /home/ben
Exception in thread "main" java.lang.AssertionError: assertion failed: method *: in trait Tuple
at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
at dotty.tools.dotc.transform.Erasure$Typer.mapOwner$1(Erasure.scala:697)
at dotty.tools.dotc.transform.Erasure$Typer.typedSelect(Erasure.scala:709)
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:3390)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3499)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.transform.Erasure$Typer.typedTypeApply(Erasure.scala:823)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3435)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.transform.Erasure$Typer.typedApply(Erasure.scala:850)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3415)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.transform.Erasure$Typer.$anonfun$7(Erasure.scala:863)
at dotty.tools.dotc.core.Decorators$.zipWithConserve(Decorators.scala:160)
at dotty.tools.dotc.transform.Erasure$Typer.typedApply(Erasure.scala:863)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3415)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.typer.Typer.$anonfun$64(Typer.scala:2834)
at dotty.tools.dotc.inlines.PrepareInlineable$.dropInlineIfError(PrepareInlineable.scala:256)
at dotty.tools.dotc.typer.Typer.typedDefDef(Typer.scala:2834)
at dotty.tools.dotc.transform.Erasure$Typer.typedDefDef(Erasure.scala:969)
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:3397)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3499)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:3603)
at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:3649)
at dotty.tools.dotc.transform.Erasure$Typer.typedStats(Erasure.scala:1082)
at dotty.tools.dotc.typer.Typer.typedBlockStats(Typer.scala:1399)
at dotty.tools.dotc.typer.Typer.typedBlock(Typer.scala:1403)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3423)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.transform.Erasure$Typer.$anonfun$7(Erasure.scala:863)
at dotty.tools.dotc.core.Decorators$.zipWithConserve(Decorators.scala:160)
at dotty.tools.dotc.transform.Erasure$Typer.typedApply(Erasure.scala:863)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3415)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.typer.Typer.typedValDef(Typer.scala:2771)
at dotty.tools.dotc.transform.Erasure$Typer.typedValDef(Erasure.scala:920)
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:3394)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3499)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:3603)
at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:3649)
at dotty.tools.dotc.transform.Erasure$Typer.typedStats(Erasure.scala:1082)
at dotty.tools.dotc.typer.Typer.typedBlockStats(Typer.scala:1399)
at dotty.tools.dotc.typer.Typer.typedBlock(Typer.scala:1403)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3423)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.transform.Erasure$Typer.typedTyped(Erasure.scala:640)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3420)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.ReTyper.typedInlined(ReTyper.scala:100)
at dotty.tools.dotc.transform.Erasure$Typer.typedInlined(Erasure.scala:911)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3438)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.transform.Erasure$Typer.typedSelect(Erasure.scala:678)
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:3390)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3499)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.transform.Erasure$Typer.typedTypeApply(Erasure.scala:823)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3435)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.transform.Erasure$Typer.typedApply(Erasure.scala:850)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3415)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.typer.Typer.typedReturn(Typer.scala:2248)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3431)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.typer.Typer.typedBlock(Typer.scala:1406)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3423)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.$anonfun$16(Typer.scala:1500)
at dotty.tools.dotc.typer.Applications.harmonic(Applications.scala:2559)
at dotty.tools.dotc.typer.Applications.harmonic$(Applications.scala:434)
at dotty.tools.dotc.typer.Typer.harmonic(Typer.scala:145)
at dotty.tools.dotc.typer.Typer.typedIf(Typer.scala:1503)
at dotty.tools.dotc.transform.Erasure$Typer.typedIf(Erasure.scala:896)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3424)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:3630)
at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:3649)
at dotty.tools.dotc.transform.Erasure$Typer.typedStats(Erasure.scala:1082)
at dotty.tools.dotc.typer.Typer.typedBlockStats(Typer.scala:1399)
at dotty.tools.dotc.typer.Typer.typedBlock(Typer.scala:1403)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3423)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedLabeled(Typer.scala:2198)
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:3408)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3499)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.typer.Typer.$anonfun$64(Typer.scala:2834)
at dotty.tools.dotc.inlines.PrepareInlineable$.dropInlineIfError(PrepareInlineable.scala:256)
at dotty.tools.dotc.typer.Typer.typedDefDef(Typer.scala:2834)
at dotty.tools.dotc.transform.Erasure$Typer.typedDefDef(Erasure.scala:969)
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:3397)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3499)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:3603)
at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:3649)
at dotty.tools.dotc.transform.Erasure$Typer.typedStats(Erasure.scala:1082)
at dotty.tools.dotc.typer.Typer.typedBlockStats(Typer.scala:1399)
at dotty.tools.dotc.typer.Typer.typedBlock(Typer.scala:1403)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3423)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.transform.Erasure$Typer.$anonfun$7(Erasure.scala:863)
at dotty.tools.dotc.core.Decorators$.zipWithConserve(Decorators.scala:160)
at dotty.tools.dotc.transform.Erasure$Typer.typedApply(Erasure.scala:863)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3415)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.typer.Typer.typedBlock(Typer.scala:1406)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3423)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.typer.Typer.$anonfun$64(Typer.scala:2834)
at dotty.tools.dotc.inlines.PrepareInlineable$.dropInlineIfError(PrepareInlineable.scala:256)
at dotty.tools.dotc.typer.Typer.typedDefDef(Typer.scala:2834)
at dotty.tools.dotc.transform.Erasure$Typer.typedDefDef(Erasure.scala:969)
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:3397)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3499)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:3603)
at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:3649)
at dotty.tools.dotc.transform.Erasure$Typer.typedStats(Erasure.scala:1082)
at dotty.tools.dotc.typer.Typer.typedClassDef(Typer.scala:3097)
at dotty.tools.dotc.transform.Erasure$Typer.typedClassDef(Erasure.scala:1058)
at dotty.tools.dotc.typer.Typer.typedTypeOrClassDef$1(Typer.scala:3403)
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:3407)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3499)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:3603)
at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:3649)
at dotty.tools.dotc.transform.Erasure$Typer.typedStats(Erasure.scala:1082)
at dotty.tools.dotc.typer.Typer.typedBlockStats(Typer.scala:1399)
at dotty.tools.dotc.typer.Typer.typedBlock(Typer.scala:1403)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3423)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.transform.Erasure$Typer.typedTyped(Erasure.scala:640)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3420)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3574)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.ReTyper.typedInlined(ReTyper.scala:100)
at dotty.tools.dotc.transform.Erasure$Typer.typedInlined(Erasure.scala:911)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3438)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.typer.Typer.typedBlock(Typer.scala:1406)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3423)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.transform.Erasure$Typer.typedTyped(Erasure.scala:640)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3420)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.ReTyper.typedInlined(ReTyper.scala:100)
at dotty.tools.dotc.transform.Erasure$Typer.typedInlined(Erasure.scala:911)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3438)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.typer.Typer.typedBlock(Typer.scala:1406)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3423)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.transform.Erasure$Typer.typedTyped(Erasure.scala:640)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3420)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3574)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.ReTyper.typedInlined(ReTyper.scala:100)
at dotty.tools.dotc.transform.Erasure$Typer.typedInlined(Erasure.scala:911)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3438)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3574)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.ReTyper.typedInlined(ReTyper.scala:100)
at dotty.tools.dotc.transform.Erasure$Typer.typedInlined(Erasure.scala:911)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3438)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.transform.Erasure$Typer.$anonfun$7(Erasure.scala:863)
at dotty.tools.dotc.core.Decorators$.zipWithConserve(Decorators.scala:160)
at dotty.tools.dotc.transform.Erasure$Typer.typedApply(Erasure.scala:863)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3415)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.transform.Erasure$Typer.typedTyped(Erasure.scala:640)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3420)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.ReTyper.typedInlined(ReTyper.scala:100)
at dotty.tools.dotc.transform.Erasure$Typer.typedInlined(Erasure.scala:911)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3438)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.transform.Erasure$Typer.$anonfun$7(Erasure.scala:863)
at dotty.tools.dotc.core.Decorators$.zipWithConserve(Decorators.scala:160)
at dotty.tools.dotc.transform.Erasure$Typer.typedApply(Erasure.scala:863)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3415)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.transform.Erasure$Typer.$anonfun$7(Erasure.scala:863)
at dotty.tools.dotc.core.Decorators$.zipWithConserve(Decorators.scala:160)
at dotty.tools.dotc.core.Decorators$.zipWithConserve(Decorators.scala:161)
at dotty.tools.dotc.transform.Erasure$Typer.typedApply(Erasure.scala:863)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3415)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.typer.Typer.typedValDef(Typer.scala:2771)
at dotty.tools.dotc.transform.Erasure$Typer.typedValDef(Erasure.scala:920)
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:3394)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3499)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:3603)
at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:3649)
at dotty.tools.dotc.transform.Erasure$Typer.typedStats(Erasure.scala:1082)
at dotty.tools.dotc.typer.Typer.typedBlockStats(Typer.scala:1399)
at dotty.tools.dotc.typer.Typer.typedBlock(Typer.scala:1403)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3423)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.typer.Typer.$anonfun$64(Typer.scala:2834)
at dotty.tools.dotc.inlines.PrepareInlineable$.dropInlineIfError(PrepareInlineable.scala:256)
at dotty.tools.dotc.typer.Typer.typedDefDef(Typer.scala:2834)
at dotty.tools.dotc.transform.Erasure$Typer.typedDefDef(Erasure.scala:969)
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:3397)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3499)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:3603)
at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:3649)
at dotty.tools.dotc.transform.Erasure$Typer.typedStats(Erasure.scala:1082)
at dotty.tools.dotc.typer.Typer.typedClassDef(Typer.scala:3097)
at dotty.tools.dotc.transform.Erasure$Typer.typedClassDef(Erasure.scala:1058)
at dotty.tools.dotc.typer.Typer.typedTypeOrClassDef$1(Typer.scala:3403)
at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:3407)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3499)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:3603)
at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:3649)
at dotty.tools.dotc.transform.Erasure$Typer.typedStats(Erasure.scala:1082)
at dotty.tools.dotc.typer.Typer.typedPackageDef(Typer.scala:3230)
at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3449)
at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3500)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3577)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:3581)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3692)
at dotty.tools.dotc.transform.Erasure.run(Erasure.scala:145)
at dotty.tools.dotc.core.Phases$Phase.runOn$$anonfun$1(Phases.scala:380)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
at scala.collection.immutable.List.foreach(List.scala:334)
at dotty.tools.dotc.core.Phases$Phase.runOn(Phases.scala:373)
at dotty.tools.dotc.Run.runPhases$1$$anonfun$1(Run.scala:343)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
at scala.collection.ArrayOps$.foreach$extension(ArrayOps.scala:1323)
at dotty.tools.dotc.Run.runPhases$1(Run.scala:336)
at dotty.tools.dotc.Run.compileUnits$$anonfun$1(Run.scala:384)
at dotty.tools.dotc.Run.compileUnits$$anonfun$adapted$1(Run.scala:396)
at dotty.tools.dotc.util.Stats$.maybeMonitored(Stats.scala:69)
at dotty.tools.dotc.Run.compileUnits(Run.scala:396)
at dotty.tools.dotc.Run.compileSources(Run.scala:282)
at dotty.tools.dotc.Run.compile(Run.scala:267)
at dotty.tools.dotc.Driver.doCompile(Driver.scala:37)
at dotty.tools.dotc.Driver.process(Driver.scala:201)
at dotty.tools.dotc.Driver.process(Driver.scala:169)
at dotty.tools.dotc.Driver.process(Driver.scala:181)
at dotty.tools.dotc.Driver.main(Driver.scala:211)
at dotty.tools.dotc.Main.main(Main.scala)
Compilation failed