Closed
Description
The following code snippet fails to compile with Dotty
object Test {
class C(x: Int, y: Int) {
def this(x: Int = 1)(y: String) =
this(x, y.toInt)
}
def test: Unit = {
new C()("1")
}
}
-- Error: tests/allan/Test.scala:8:8 -------------------------------------------
8 | new C()("1")
| ^
|missing argument for parameter x of constructor C: (x: Int)(y: String): Test.C