test/test3.scala:13 error: class Foo takes type parameters
case class FooType extends ClassType[Foo,Object](ObjectType);
^
test/test3.scala:16 error: class Foo takes type parameters
case class BarType[T <: Foo](tpeT : RefType[T]) extends ClassType[Bar[T],Foo](FooType);
^
test/test3.scala:16 error: class Foo takes type parameters
case class BarType[T <: Foo](tpeT : RefType[T]) extends ClassType[Bar[T],Foo](FooType);
^
test/test3.scala:17 error: class Foo takes type parameters
implicit def typeOfBar[T <: Foo](implicit elem : RefType[T]) : RefType[Bar[T]] =
^
Exception in thread "main" java.lang.StackOverflowError
at scala.tools.nsc.Global$analyzer$.instantiate(Global.scala:232)
at scala.tools.nsc.typechecker.Infer$class.instantiate(Infer.scala:62)
at scala.tools.nsc.Global$analyzer$.instantiate(Global.scala:232)
at scala.tools.nsc.typechecker.Infer$class.instantiate(Infer.scala:62)
at scala.tools.nsc.Global$analyzer$.instantiate(Global.scala:232)
at scala.tools.nsc.typechecker.Infer$class.instantiate(Infer.scala:62)
at scala.tools.nsc.Global$analyzer$.instantiate(Global.scala:232)
at scala.tools.nsc.typechecker.Infer$class.instantiate(Infer.scala:62)
at scala.tools.nsc.Global$analyzer$.instantiate(Global.scala:232)
at scala.tools.nsc.typechecker.Infer$class.instantiate(Infer.scala:62)
at scala.tools.nsc.Global$analyzer$.instantiate(Global.scala:232)
at scala.tools.nsc.typechecker.Infer$class.instantiate(Infer.scala:62)
at scala.tools.nsc.Global$analyzer$.instantiate(Global.scala:232)
at scala.tools.nsc.typechecker.Infer$class.instantiate(Infer.scala:62)
...
...
|