Avatar
@swift-main enum Foo { case foo(baz: Int) case foo(bar: Int) // NO ERROR!!!! } let foo: Foo = .foo(baz: 0) switch foo { case .foo(baz: let baz): print(baz.description) case .foo(bar: let bar): // ERROR print(bar.description) }