summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorDavid MacIver <david.maciver@gmail.com>2008-10-30 13:56:34 +0000
committerDavid MacIver <david.maciver@gmail.com>2008-10-30 13:56:34 +0000
commit219412ebb7c8c7d574c4953983c317cf7a62e92d (patch)
treeed8425df496dec6e66264286b0cbed2d2e3dc9ce /test/pending
parent6eba78c75160790cb7d44a35b9ce0cf22b2b5b49 (diff)
downloadscala-219412ebb7c8c7d574c4953983c317cf7a62e92d.tar.gz
scala-219412ebb7c8c7d574c4953983c317cf7a62e92d.tar.bz2
scala-219412ebb7c8c7d574c4953983c317cf7a62e92d.zip
Added a test for a variant on ticket #425, as i...
Added a test for a variant on ticket #425, as it gives a completely different compile error.
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/pos/t425variant.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/pending/pos/t425variant.scala b/test/pending/pos/t425variant.scala
new file mode 100644
index 0000000000..458f3b9da8
--- /dev/null
+++ b/test/pending/pos/t425variant.scala
@@ -0,0 +1,10 @@
+object Temp{
+ case class A(x: Int)
+ case class B(override val x: Int, y: Double) extends A(x)
+
+ B(5, 3.3) match {
+ case B(x, y) => Console.println(y)
+ case A(x) => Console.println(x)
+ }
+}
+