From 4574bcbd6783fa0f7fe1de2bbb445c8a4eb54a5b Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Mon, 6 Aug 2007 09:58:54 +0000 Subject: -Ycasetags optimization fixed 1253 --- test/files/run/patmatnew.scala | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/files/run/patmatnew.scala') 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) -- cgit v1.2.3