diff options
Diffstat (limited to 'test/files/neg/t2416.scala')
-rw-r--r-- | test/files/neg/t2416.scala | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/files/neg/t2416.scala b/test/files/neg/t2416.scala deleted file mode 100644 index 6bb57a984b..0000000000 --- a/test/files/neg/t2416.scala +++ /dev/null @@ -1,14 +0,0 @@ -object t2416a { - trait A[X <: Double] { type B = X } - def x : A[Int]#B = 10 // no you won't -} - -object t2416b { - trait A{type B[Y <: Double] = Int} - def x : A#B[Boolean] = 10 // seriously? -} - -object t2416c { - trait A{type B[Z <: Double] = Int} - type C[Z <: A] = Z#B[String] // nuh-uh! -}
\ No newline at end of file |