summaryrefslogtreecommitdiff
path: root/test/files/run/patmatnew.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/patmatnew.scala')
-rw-r--r--test/files/run/patmatnew.scala14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/files/run/patmatnew.scala b/test/files/run/patmatnew.scala
index d9e36a35fe..a54bac814f 100644
--- a/test/files/run/patmatnew.scala
+++ b/test/files/run/patmatnew.scala
@@ -31,7 +31,8 @@ object Test extends TestConsoleMain {
new TestStream,
new Test903,
new Test1093,
- new Test1163_Order
+ new Test1163_Order,
+ new TestUnbox
)
class Foo(j:Int) {
@@ -133,6 +134,17 @@ object Test extends TestConsoleMain {
def runTest() = assertEquals("both", (Var("x"),Var("y")), f)
}
+ class TestUnbox extends TestCase("unbox") {
+ override def runTest() {
+ val xyz: (int, String, boolean) = (1, "abc", true)
+ xyz._1 match {
+ case 1 => "OK"
+ case 2 => assert(false); "KO"
+ case 3 => assert(false); "KO"
+ }
+ }
+ }
+
class Test806_818 { // #806, #811 compile only -- type of bind
// bug811
trait Core {