aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t3363-old.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-01-27 12:46:48 +0100
committerMartin Odersky <odersky@gmail.com>2015-02-07 17:31:53 +0100
commit1f8b5691dabaae336c3c3f568b303eb24e783494 (patch)
tree7546b2148b5863e2e0070122ffc6d67eacf9edf4 /tests/pending/pos/t3363-old.scala
parent4320e20ff5f3126940f0ecad1dd53573cf03562b (diff)
downloaddotty-1f8b5691dabaae336c3c3f568b303eb24e783494.tar.gz
dotty-1f8b5691dabaae336c3c3f568b303eb24e783494.tar.bz2
dotty-1f8b5691dabaae336c3c3f568b303eb24e783494.zip
Test reorg
Diffstat (limited to 'tests/pending/pos/t3363-old.scala')
-rw-r--r--tests/pending/pos/t3363-old.scala18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/pending/pos/t3363-old.scala b/tests/pending/pos/t3363-old.scala
deleted file mode 100644
index 8e54d4b4a..000000000
--- a/tests/pending/pos/t3363-old.scala
+++ /dev/null
@@ -1,18 +0,0 @@
-object TestCase {
-
- //now matter if you put (abstract) class or trait it will fail in all cases
- trait MapOps[T]
-
- //if fs was reduced to List (generic type with one parameter) then the code compiles
- //if you inherit from MapOps[T] instead of MapOps[F] then code compiles fine
- implicit def map2ops[T,F](fs: Map[T,F]): TestCase.MapOps[F]{lazy val m: Manifest[T]; def is(xs: List[T]): List[List[T]]} = new MapOps[F] {
- //if you remove this line, then code compiles
- lazy val m: Manifest[T] = sys.error("just something to make it compile")
- def is(xs: List[T]) = List(xs)
- }
-
- def main(args: Array[String]): Unit = {
- println(Map(1 -> "2") is List(2))
- }
-
- }