Avatar
Avatar
zunda
@swift-5.10.1 @swift-5.5.3 @swift-5.4.3 enum Foo { case foo(v1: String) case foo(v2: String) } let foo = Foo.foo(v1: "Hello") print(foo) switch foo { case .foo(v1: let string): print(string) case .foo(v2: let string): print(string) }
exit status: 134 with swift-frontend: /home/buildnode/jenkins/workspace/oss-swift-5.4-package-linux-ubuntu-18_04/swift/lib/Sema/TypeCheckPattern.cpp:99: swift::EnumElementDecl *filterForEnumElement(swift::DeclContext *, swift::SourceLoc, bool, swift::LookupResult): Assertion `!foundElement && "ambiguity in enum case name lookup?!"' failed. Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace. Stack dump:
5.26 KB