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.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/patmatnew.scala b/test/files/run/patmatnew.scala
index 63b40769ff..cce5bacc46 100644
--- a/test/files/run/patmatnew.scala
+++ b/test/files/run/patmatnew.scala
@@ -192,6 +192,13 @@ object Test extends TestConsoleMain {
}
+ object Test1253 { // compile-only
+ def foo(t : (Int, String)) = t match {
+ case (1, "") => throw new Exception
+ case (r, _) => throw new Exception(r.toString)
+ }
+ }
+
object Foo1 {
class Bar1(val x : String)
def p(b : Bar1) = Console.println(b.x)