Avatar
@swift-5.1.5 @swift-5.2.5 enum Foo { case a(Int, String) } switch Foo.a(42, "XYZ") { case .a(let x): print("\(x.0), \(x.1)") } (edited)