scala.tools.nsc.symtab.Types$$TypeError

type mismatch; found : Product with x$$1.Token required: Product with Test.this.Token

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web20

  • via Unknown by Eric Willigers,
  • via Unknown by Ingo Maier,
  • Stack trace

    • scala.tools.nsc.symtab.Types$$TypeError: type mismatch; found : Product with x$$1.Token required: Product with Test.this.Token at scala.tools.nsc.typechecker.Contexts$$Context.error(Contexts.scala:348) at scala.tools.nsc.typechecker.Infer$$Inferencer.error(Infer.scala:219) at scala.tools.nsc.typechecker.Infer$$Inferencer.typeError(Infer.scala:229) at scala.tools.nsc.typechecker.Infer$$Inferencer.typeErrorTree(Infer.scala:235) at scala.tools.nsc.typechecker.Typers$$Typer.adapt(Typers.scala:791) at scala.tools.nsc.typechecker.Typers$$Typer.typed(Typers.scala:3033) at scala.tools.nsc.typechecker.Typers$$Typer.typed(Typers.scala:3075) at scala.tools.nsc.typechecker.Typers$$Typer.transformedOrTyped(Typers.scala:3124) at scala.tools.nsc.typechecker.Typers$$Typer.typedDefDef(Typers.scala:1288) at scala.tools.nsc.typechecker.Typers$$Typer.typed1(Typers.scala:2759) at scala.tools.nsc.typechecker.Typers$$Typer.typed(Typers.scala:3031) at scala.tools.nsc.typechecker.Typers$$Typer.typed(Typers.scala:3064) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.makeAccessor(SuperAccessors.scala:253) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.transform(SuperAccessors.scala:130) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.transform(SuperAccessors.scala:185) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer$$$$anonfun$$11.apply(SuperAccessors.scala:188) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer$$$$anonfun$$11.apply(SuperAccessors.scala:188) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.scala$$tools$$nsc$$typechecker$$SuperAccessors$$SuperAccTransformer$$$$withInvalidOwner(SuperAccessors.scala:208) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.transform(SuperAccessors.scala:187) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1287) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.transform(TypingTransformers.scala:46) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.transform(SuperAccessors.scala:191) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$24.apply(Trees.scala:1265) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$24.apply(Trees.scala:1265) at scala.tools.nsc.ast.Trees$$Transformer.atOwner(Trees.scala:1382) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.atOwner(TypingTransformers.scala:33) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.atOwner(TypingTransformers.scala:27) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.atOwner(SuperAccessors.scala:202) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1264) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.transform(TypingTransformers.scala:46) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.transform(SuperAccessors.scala:191) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$34.apply(Trees.scala:1376) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$34.apply(Trees.scala:1374) at scala.List$$.loop$$0(List.scala:244) at scala.List$$.mapConserve(List.scala:261) at scala.tools.nsc.ast.Trees$$Transformer.transformStats(Trees.scala:1374) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1287) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.transform(TypingTransformers.scala:46) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.transform(SuperAccessors.scala:191) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer$$$$anonfun$$1.apply(SuperAccessors.scala:58) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer$$$$anonfun$$1.apply(SuperAccessors.scala:55) at scala.List$$.map2(List.scala:277) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.transformArgs(SuperAccessors.scala:55) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.transform(SuperAccessors.scala:185) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$25.apply(Trees.scala:1270) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$25.apply(Trees.scala:1269) at scala.tools.nsc.ast.Trees$$Transformer.atOwner(Trees.scala:1382) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.atOwner(TypingTransformers.scala:33) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.atOwner(TypingTransformers.scala:27) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.atOwner(SuperAccessors.scala:202) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1268) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.transform(TypingTransformers.scala:46) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.transform(SuperAccessors.scala:191) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$28.apply(Trees.scala:1358) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$28.apply(Trees.scala:1358) at scala.List$$.loop$$0(List.scala:244) at scala.List$$.mapConserve(List.scala:261) at scala.tools.nsc.ast.Trees$$Transformer.transformTrees(Trees.scala:1358) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer$$$$anonfun$$8.apply(SuperAccessors.scala:112) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer$$$$anonfun$$8.apply(SuperAccessors.scala:112) at scala.tools.nsc.ast.Trees$$Transformer.atOwner(Trees.scala:1382) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.atOwner(TypingTransformers.scala:33) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.atOwner(TypingTransformers.scala:27) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.atOwner(SuperAccessors.scala:202) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.transform(SuperAccessors.scala:112) at scala.tools.nsc.ast.Trees$$Transformer.transformTemplate(Trees.scala:1360) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$22.apply(Trees.scala:1257) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$22.apply(Trees.scala:1257) at scala.tools.nsc.ast.Trees$$Transformer.atOwner(Trees.scala:1382) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.atOwner(TypingTransformers.scala:33) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.atOwner(TypingTransformers.scala:27) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.atOwner(SuperAccessors.scala:202) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1256) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.transform(TypingTransformers.scala:46) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.transform(SuperAccessors.scala:99) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$34.apply(Trees.scala:1376) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$34.apply(Trees.scala:1374) at scala.List$$.loop$$0(List.scala:244) at scala.List$$.mapConserve(List.scala:261) at scala.tools.nsc.ast.Trees$$Transformer.transformStats(Trees.scala:1374) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$21.apply(Trees.scala:1253) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$21.apply(Trees.scala:1253) at scala.tools.nsc.ast.Trees$$Transformer.atOwner(Trees.scala:1382) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.atOwner(TypingTransformers.scala:33) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.atOwner(TypingTransformers.scala:27) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.atOwner(SuperAccessors.scala:202) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1252) at scala.tools.nsc.transform.TypingTransformers$$TypingTransformer.transform(TypingTransformers.scala:46) at scala.tools.nsc.typechecker.SuperAccessors$$SuperAccTransformer.transform(SuperAccessors.scala:191) at scala.tools.nsc.ast.Trees$$Transformer.transformUnit(Trees.scala:1377) at scala.tools.nsc.transform.Transform$$Phase.apply(Transform.scala:30) at scala.tools.nsc.Global$$GlobalPhase.applyPhase(Global.scala:243) at scala.tools.nsc.Global$$GlobalPhase$$$$anonfun$$2.apply(Global.scala:231) at scala.tools.nsc.Global$$GlobalPhase$$$$anonfun$$2.apply(Global.scala:231) at scala.Iterator$$class.foreach(Iterator.scala:375) at scala.collection.mutable.ListBuffer$$$$anon$$0.foreach(ListBuffer.scala:255) at scala.tools.nsc.Global$$GlobalPhase.run(Global.scala:231) at scala.tools.nsc.Global$$Run.compileSources(Global.scala:533) at scala.tools.nsc.Global$$Run.compile(Global.scala:617) at scala.tools.nsc.Main$$.process(Main.scala:86) at scala.tools.nsc.Main$$.main(Main.scala:107) at scala.tools.nsc.Main.main(Main.scala)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.