From b7efe9089062fd3908c07f19ee16a4ec39afdbb8 Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Tue, 12 Oct 2010 12:31:35 +0000 Subject: Closes #2333. Review by dragos --- test/files/run/t2333.scala | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/files/run/t2333.scala (limited to 'test') diff --git a/test/files/run/t2333.scala b/test/files/run/t2333.scala new file mode 100644 index 0000000000..da43386572 --- /dev/null +++ b/test/files/run/t2333.scala @@ -0,0 +1,16 @@ +class A { + def whatever() { + lazy val a = 1 + lazy val b = try { 2 } catch { case _ => 0 } + a + b + + } +} + +object Test { + def main(a: Array[String]) { + val a = new A + a.whatever + } +} \ No newline at end of file -- cgit v1.2.3