From e44e4aa7e818d7eb90316880cd0758c65298f2a8 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Mon, 27 Oct 2014 14:59:07 +0100 Subject: TailRec now handles Try with Ident-handler --- tests/pos/tryTyping.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/pos/tryTyping.scala (limited to 'tests/pos') diff --git a/tests/pos/tryTyping.scala b/tests/pos/tryTyping.scala new file mode 100644 index 000000000..35180bee9 --- /dev/null +++ b/tests/pos/tryTyping.scala @@ -0,0 +1,14 @@ +object tryTyping{ + def foo: Int = { + try{???; 1} + catch { + case e: Exception => 2 + } + } + + def foo2: Int = { + val a: (Throwable => Int) = _ match {case _ => 2} + try{???; 1} + catch a + } +} \ No newline at end of file -- cgit v1.2.3