From d4c17e099eb5e866d779b74893e5bd265464ee67 Mon Sep 17 00:00:00 2001 From: Liu Fengyun Date: Fri, 13 Sep 2019 23:42:55 +0200 Subject: [PATCH] Fix #7217: add test --- tests/pos/i7217.scala | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/pos/i7217.scala 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") }