summaryrefslogtreecommitdiff
path: root/test/files/pos/t425.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-07-13 08:05:04 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-07-13 08:05:04 +0000
commit8a0d130537be8c3716ab9191d84c53d39aaa1804 (patch)
tree8517ab3b5e82f4bb681f048e702b96f8e9d2d0fc /test/files/pos/t425.scala
parent038fef39ad4310fc3fe1c5324b004e42fd0036b3 (diff)
downloadscala-8a0d130537be8c3716ab9191d84c53d39aaa1804.tar.gz
scala-8a0d130537be8c3716ab9191d84c53d39aaa1804.tar.bz2
scala-8a0d130537be8c3716ab9191d84c53d39aaa1804.zip
prohibit case-to-case inheritance instead of is...
prohibit case-to-case inheritance instead of issuing warning. closes #4109. review by extempore, since it should make your life much easier in the pattern matcher
Diffstat (limited to 'test/files/pos/t425.scala')
-rw-r--r--test/files/pos/t425.scala11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/files/pos/t425.scala b/test/files/pos/t425.scala
deleted file mode 100644
index e50c50ac35..0000000000
--- a/test/files/pos/t425.scala
+++ /dev/null
@@ -1,11 +0,0 @@
-object Temp{
- case class A(x: Int)
- case class B(override val x: Int, y: Double) extends A(x)
-
- val b: A = B(5, 3.3)
- b match {
- case B(x, y) => Console.println(y)
- case A(x) => Console.println(x)
- }
-}
-