scala.reflect.internal.Types$TypeError: type mismatch; found : scala#25.this.Function1#1283[AbstractPrinter#6560.this.global#14333.Name#6687,scala#25.this.Int#929] required: scala#25.this.Function1#1283[AbstractPrinter#6560.this.global#14238.Name#6687,scala#25.this.Int#929] [...]

GitHub | adriaanm | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    trait lazy val with path-dependent type should not crash during fields

    GitHub | 8 months ago | adriaanm
    scala.reflect.internal.Types$TypeError: type mismatch; found : scala#25.this.Function1#1283[AbstractPrinter#6560.this.global#14333.Name#6687,scala#25.this.Int#929] required: scala#25.this.Function1#1283[AbstractPrinter#6560.this.global#14238.Name#6687,scala#25.this.Int#929] [...]

    Root Cause Analysis

    1. scala.reflect.internal.Types$TypeError

      type mismatch; found : scala#25.this.Function1#1283[AbstractPrinter#6560.this.global#14333.Name#6687,scala#25.this.Int#929] required: scala#25.this.Function1#1283[AbstractPrinter#6560.this.global#14238.Name#6687,scala#25.this.Int#929] [...]

      at scala.tools.nsc.transform.Fields$FieldsTransformer.typedPos()
    2. Scala Compiler
      Fields$FieldsTransformer.fieldsAndAccessors
      1. scala.tools.nsc.transform.Fields$FieldsTransformer.typedPos(Fields.scala:511)
      2. scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$5(AccessorSynthesis.scala:356)
      3. scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$4(AccessorSynthesis.scala:356)
      4. scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.expandLazyClassMember(AccessorSynthesis.scala:356)
      5. scala.tools.nsc.transform.Fields$FieldsTransformer.superLazy$1(Fields.scala:636)
      6. scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$fieldsAndAccessors$3(Fields.scala:641)
      7. scala.tools.nsc.transform.Fields$FieldsTransformer.fieldsAndAccessors(Fields.scala:639)
      7 frames