summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2010-10-12 12:31:35 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2010-10-12 12:31:35 +0000
commitb7efe9089062fd3908c07f19ee16a4ec39afdbb8 (patch)
treefcb6dd375a183f3d65354562ff4f2786b0237092 /test
parentb33c2c37a4c6b76136b68f754516fbb78481599b (diff)
downloadscala-b7efe9089062fd3908c07f19ee16a4ec39afdbb8.tar.gz
scala-b7efe9089062fd3908c07f19ee16a4ec39afdbb8.tar.bz2
scala-b7efe9089062fd3908c07f19ee16a4ec39afdbb8.zip
Closes #2333. Review by dragos
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t2333.scala16
1 files changed, 16 insertions, 0 deletions
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