diff --git a/tests/pos/i7217.scala b/tests/pos/i7217.scala new file mode 100644 index 000000000000..1c2a92c731b7 --- /dev/null +++ b/tests/pos/i7217.scala @@ -0,0 +1,5 @@ +class Foo(p1: String, p2: String): + def this(p1: String) = this(p1, "blah") + +val x = { Foo("blah", "hah") } +val y = { Foo("blah") }