diff options
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i566.scala | 2 | ||||
-rw-r--r-- | tests/pos/tycons.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/pos/i566.scala b/tests/pos/i566.scala index 34d25f8f2..a0e6f2fe7 100644 --- a/tests/pos/i566.scala +++ b/tests/pos/i566.scala @@ -1,4 +1,4 @@ -object Test { +class Test { type T = String type U reflect.classTag[T] diff --git a/tests/pos/tycons.scala b/tests/pos/tycons.scala index ef16a7792..1ed4d2855 100644 --- a/tests/pos/tycons.scala +++ b/tests/pos/tycons.scala @@ -16,7 +16,7 @@ abstract class Functor[F <: TypeConstructor] { def map[A, B](f: F { type TypeArg <: A }): F { type TypeArg <: B } } -implicit object ListFunctor extends Functor[List] { +object ListFunctor extends Functor[List] { override def map[A, B](f: List { type TypeArg <: A }): List { type TypeArg <: B } = ??? } |