Advertisement
Guest User

dotty-error-given-inline

a guest
Apr 6th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 4.89 KB | None | 0 0
  1. scala> given nOrd[T] as _ <: Ord[T] = ??? // { def cmp(x: T, y: T) = ??? }
  2. Exception in thread "main" java.lang.AssertionError: assertion failed: PolyType(List(T), List(TypeBounds(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing),TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Any))), TypeBounds(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Nothing),AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class <empty>)),module rs$line$1),trait Ord),List(TypeParamRef(T)))))
  3.     at dotty.DottyPredef$.assertFail(DottyPredef.scala:17)
  4.     at dotty.tools.dotc.core.Types$PolyType.<init>(Types.scala:3525)
  5.     at dotty.tools.dotc.core.Types$PolyType$.apply(Types.scala:3631)
  6.     at dotty.tools.dotc.core.Types$PolyType$.apply(Types.scala:3628)
  7.     at dotty.tools.dotc.core.Types$LambdaTypeCompanion.fromParams(Types.scala:3326)
  8.     at dotty.tools.dotc.typer.NamerContextOps.methodType(Namer.scala:148)
  9.     at dotty.tools.dotc.core.Contexts$Context.methodType(Contexts.scala:75)
  10.     at dotty.tools.dotc.typer.Namer.wrapMethType$1(Namer.scala:1497)
  11.     at dotty.tools.dotc.typer.Namer.defDefSig$$anonfun$4(Namer.scala:1504)
  12.     at dotty.tools.dotc.typer.Namer.valOrDefDefSig(Namer.scala:1453)
  13.     at dotty.tools.dotc.typer.Namer.defDefSig(Namer.scala:1504)
  14.     at dotty.tools.dotc.typer.Namer$Completer.typeSig(Namer.scala:815)
  15.     at dotty.tools.dotc.typer.Namer$Completer.completeInCreationContext(Namer.scala:935)
  16.     at dotty.tools.dotc.typer.Namer$Completer.complete(Namer.scala:843)
  17.     at dotty.tools.dotc.core.SymDenotations$SymDenotation.completeFrom(SymDenotations.scala:259)
  18.     at dotty.tools.dotc.core.Denotations$Denotation.completeInfo$1(Denotations.scala:185)
  19.     at dotty.tools.dotc.core.Denotations$Denotation.info(Denotations.scala:187)
  20.     at dotty.tools.dotc.core.SymDenotations$SymDenotation.ensureCompleted(SymDenotations.scala:399)
  21.     at dotty.tools.dotc.typer.Typer.retrieveSym(Typer.scala:2103)
  22.     at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:2128)
  23.     at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:2208)
  24.     at dotty.tools.dotc.typer.Typer.op$1(Typer.scala:2247)
  25.     at dotty.tools.dotc.typer.Typer.typed(Typer.scala:2256)
  26.     at dotty.tools.dotc.typer.Typer.typed(Typer.scala:2259)
  27.     at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:2281)
  28.     at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:2325)
  29.     at dotty.tools.dotc.typer.Typer.typedClassDef(Typer.scala:1812)
  30.     at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:2141)
  31.     at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:2208)
  32.     at dotty.tools.dotc.typer.Typer.op$1(Typer.scala:2247)
  33.     at dotty.tools.dotc.typer.Typer.typed(Typer.scala:2256)
  34.     at dotty.tools.dotc.typer.Typer.typed(Typer.scala:2259)
  35.     at dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:2281)
  36.     at dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:2325)
  37.     at dotty.tools.dotc.typer.Typer.typedPackageDef(Typer.scala:1938)
  38.     at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:2182)
  39.     at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:2209)
  40.     at dotty.tools.dotc.typer.Typer.op$1(Typer.scala:2247)
  41.     at dotty.tools.dotc.typer.Typer.typed(Typer.scala:2256)
  42.     at dotty.tools.dotc.typer.Typer.typed(Typer.scala:2259)
  43.     at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:2367)
  44.     at dotty.tools.dotc.typer.FrontEnd.liftedTree1$2(FrontEnd.scala:78)
  45.     at dotty.tools.dotc.typer.FrontEnd.typeCheck$$anonfun$1(FrontEnd.scala:83)
  46.     at dotty.runtime.function.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
  47.     at dotty.tools.dotc.typer.FrontEnd.monitor(FrontEnd.scala:42)
  48.     at dotty.tools.dotc.typer.FrontEnd.typeCheck(FrontEnd.scala:84)
  49.     at dotty.tools.repl.REPLFrontEnd.runOn(ReplFrontEnd.scala:23)
  50.     at dotty.tools.dotc.Run.runPhases$4$$anonfun$4(Run.scala:167)
  51.     at dotty.runtime.function.JProcedure1.apply(JProcedure1.java:15)
  52.     at dotty.runtime.function.JProcedure1.apply(JProcedure1.java:10)
  53.     at scala.collection.ArrayOps$.foreach$extension(ArrayOps.scala:1323)
  54.     at dotty.tools.dotc.Run.runPhases$5(Run.scala:177)
  55.     at dotty.tools.dotc.Run.compileUnits$$anonfun$1(Run.scala:185)
  56.     at dotty.runtime.function.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
  57.     at dotty.tools.dotc.util.Stats$.maybeMonitored(Stats.scala:64)
  58.     at dotty.tools.dotc.Run.compileUnits(Run.scala:192)
  59.     at dotty.tools.dotc.Run.compileUnits(Run.scala:134)
  60.     at dotty.tools.repl.ReplCompiler.runCompilationUnit(ReplCompiler.scala:156)
  61.     at dotty.tools.repl.ReplCompiler.compile(ReplCompiler.scala:166)
  62.     at dotty.tools.repl.ReplDriver.compile(ReplDriver.scala:229)
  63.     at dotty.tools.repl.ReplDriver.interpret(ReplDriver.scala:193)
  64.     at dotty.tools.repl.ReplDriver.loop$1(ReplDriver.scala:127)
  65.     at dotty.tools.repl.ReplDriver.runUntilQuit$$anonfun$1(ReplDriver.scala:130)
  66.     at dotty.tools.repl.ReplDriver.withRedirectedOutput(ReplDriver.scala:148)
  67.     at dotty.tools.repl.ReplDriver.runUntilQuit(ReplDriver.scala:130)
  68.     at dotty.tools.repl.Main$.main(Main.scala:6)
  69.     at dotty.tools.repl.Main.main(Main.scala)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement