The following fails:
class Foo {
init(_ x: Int, y: Int = 0, z: Int = 0) {}
func f() {
_ = Foo(0, z: 0) // Error: no matching overload
_ = Foo(0, y: 0, z: 0)
}
}
The following fails:
class Foo {
init(_ x: Int, y: Int = 0, z: Int = 0) {}
func f() {
_ = Foo(0, z: 0) // Error: no matching overload
_ = Foo(0, y: 0, z: 0)
}
}
Thanks, logged as bugs://77042
bugs://77042 got closed with status fixed.