Avatar
@swift-main enum Foo { case foo(v1: String) case foo(v1: String, v2: String) } let foo = Foo.foo(v1: "Hello") print(foo) switch foo { case .foo(v1: let string): print(string) case .foo(v1: let string1, v2: let string2): print(string1, string2) }