aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t1909b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t1909b.scala')
-rw-r--r--tests/untried/neg/t1909b.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/t1909b.scala b/tests/untried/neg/t1909b.scala
new file mode 100644
index 000000000..637fa9619
--- /dev/null
+++ b/tests/untried/neg/t1909b.scala
@@ -0,0 +1,7 @@
+class Ticket1909 (x: Int) {
+ var z = 12
+ def this() = this({
+ def bar() = this.z + 5
+ bar
+ })
+}