diff options
author | David MacIver <david.maciver@gmail.com> | 2008-10-30 13:56:34 +0000 |
---|---|---|
committer | David MacIver <david.maciver@gmail.com> | 2008-10-30 13:56:34 +0000 |
commit | 219412ebb7c8c7d574c4953983c317cf7a62e92d (patch) | |
tree | ed8425df496dec6e66264286b0cbed2d2e3dc9ce /test/pending/pos/t425variant.scala | |
parent | 6eba78c75160790cb7d44a35b9ce0cf22b2b5b49 (diff) | |
download | scala-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/pos/t425variant.scala')
-rw-r--r-- | test/pending/pos/t425variant.scala | 10 |
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) + } +} + |