Skip to content

Commit 421d2e9

Browse files
Merge pull request #7224 from dotty-staging/fix-7217
Fix #7217: add test
2 parents d8e7c40 + d4c17e0 commit 421d2e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/pos/i7217.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Foo(p1: String, p2: String):
2+
def this(p1: String) = this(p1, "blah")
3+
4+
val x = { Foo("blah", "hah") }
5+
val y = { Foo("blah") }

0 commit comments

Comments
 (0)