Avatar
Avatar
Iceman
@swift-6.0-dev @swift-5.10.1 extension String { static func foo(_ int: Int, other: Bool = true) -> String { "foo" } } func f() { let a = switch "" { case .foo(.zero): true default: false } switch "" { case .foo(.zero): break default: break } }
swift510 BOT 6/2/2024 2:20 PM
exit status: 1 with <stdin>:7:16: error: value of tuple type '(Int, other: Bool)' has no member 'zero' case .foo(.zero): true ~^~~~