aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t1909b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t1909b.scala')
-rw-r--r--tests/run/t1909b.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/t1909b.scala b/tests/run/t1909b.scala
new file mode 100644
index 000000000..b4bb9a1e0
--- /dev/null
+++ b/tests/run/t1909b.scala
@@ -0,0 +1,9 @@
+class Ticket1909 (x: Int) {
+ def this() = this({
+ def bar() = 5
+ bar
+ })
+}
+object Test extends dotty.runtime.LegacyApp {
+ new Ticket1909()
+}