diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/caseclass-parents.flags | 1 | ||||
-rw-r--r-- | test/files/pos/caseclass-parents.scala | 11 | ||||
-rw-r--r-- | test/files/pos/caseclass-productN.flags | 1 | ||||
-rw-r--r-- | test/files/pos/caseclass-productN.scala | 20 |
4 files changed, 0 insertions, 33 deletions
diff --git a/test/files/pos/caseclass-parents.flags b/test/files/pos/caseclass-parents.flags deleted file mode 100644 index e1b37447c9..0000000000 --- a/test/files/pos/caseclass-parents.flags +++ /dev/null @@ -1 +0,0 @@ --Xexperimental
\ No newline at end of file diff --git a/test/files/pos/caseclass-parents.scala b/test/files/pos/caseclass-parents.scala deleted file mode 100644 index d4bc52154b..0000000000 --- a/test/files/pos/caseclass-parents.scala +++ /dev/null @@ -1,11 +0,0 @@ -case class Foo() extends Serializable -case object Bar extends Serializable - -case class Bippy[T, U](x: T, y: U) extends Product2[T, U] { } - -case class Bounded[T <: util.Random, U <: util.Random](x: T, y: U) { } - -class A { - def f(x: Bounded[_, _]) = x.productIterator foreach g - def g(rand: util.Random) = () -}
\ No newline at end of file diff --git a/test/files/pos/caseclass-productN.flags b/test/files/pos/caseclass-productN.flags deleted file mode 100644 index e1b37447c9..0000000000 --- a/test/files/pos/caseclass-productN.flags +++ /dev/null @@ -1 +0,0 @@ --Xexperimental
\ No newline at end of file diff --git a/test/files/pos/caseclass-productN.scala b/test/files/pos/caseclass-productN.scala deleted file mode 100644 index e2177856fd..0000000000 --- a/test/files/pos/caseclass-productN.scala +++ /dev/null @@ -1,20 +0,0 @@ -object Test { - class A - class B extends A - class C extends B - - case class Bippy[T](x: Int, y: List[T], z: T) { } - case class Bippy2[T](x: Int, y: List[T], z: T) { } - - def bippies = List( - Bippy(5, List(new C), new B), - Bippy2(5, List(new B), new C) - ) - - def bmethod(x: B) = () - - def main(args: Array[String]): Unit = { - bippies flatMap (_._2) foreach bmethod - bippies map (_._3) foreach bmethod - } -} |