aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-10-21 16:56:05 +0200
committerMartin Odersky <odersky@gmail.com>2015-10-22 12:21:25 +0200
commit3da5e04e286ee74781fda9e3b8776e5a8644712a (patch)
treee16bd67fd3dc049f407f4b0ffcf5830fd861c952 /tests/pos
parent9ad85c31640d8cf3b97db51f5520c1ca63e3e31c (diff)
downloaddotty-3da5e04e286ee74781fda9e3b8776e5a8644712a.tar.gz
dotty-3da5e04e286ee74781fda9e3b8776e5a8644712a.tar.bz2
dotty-3da5e04e286ee74781fda9e3b8776e5a8644712a.zip
Fix tests to survive wellformedness checks
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/i566.scala2
-rw-r--r--tests/pos/tycons.scala2
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 } = ???
}