diff options
Diffstat (limited to 'tests/pos/Variances.scala')
-rw-r--r-- | tests/pos/Variances.scala | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/pos/Variances.scala b/tests/pos/Variances.scala deleted file mode 100644 index 5c448ec88..000000000 --- a/tests/pos/Variances.scala +++ /dev/null @@ -1,15 +0,0 @@ -trait HasY { type Y } - -// This works in scalac. -trait Foo1[-X] { def bar[Y <: X](y: Y) = y } - -// A variant of Foo1 using a dependent method type (doesn't work using -// scalac) -trait Foo2[-X] { def bar(x: HasY { type Y <: X })(y: x.Y) = y } - -// This works in scalac. -trait Foo3[+X] { def bar[Y >: X](y: Y) = y } - -// A variant of Foo3 using a dependent method type (doesn't work -// using scalac) -trait Foo4[+X] { def bar(x: HasY { type Y >: X })(y: x.Y) = y } |