Avatar
@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 } }