aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t4098.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t4098.scala')
-rw-r--r--tests/untried/neg/t4098.scala22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/untried/neg/t4098.scala b/tests/untried/neg/t4098.scala
new file mode 100644
index 000000000..2e6d16764
--- /dev/null
+++ b/tests/untried/neg/t4098.scala
@@ -0,0 +1,22 @@
+class A(a: Any) {
+ def this() = {
+ this(b)
+ def b = new {}
+ }
+
+ def this(x: Int) = {
+ this(b)
+ lazy val b = new {}
+ }
+
+ def this(x: Int, y: Int) = {
+ this(b)
+ val b = new {}
+ }
+
+ def this(x: Int, y: Int, z: Int) = {
+ this(b)
+ println(".")
+ def b = new {}
+ }
+}