Avatar
Avatar
zunda
@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) }
swiftNightly BOT 6/12/2024 7:47 AM
exit status: 132 with Fatal error: unexpected enum case while switching on value of type 'Foo' Stack dump: 0. Program arguments: /usr/bin/swift-frontend -frontend -interpret - -disable-objc-interop -empty-abi-descriptor -Xcc -working-directory -Xcc /tmp/7fa92d746e6b7e0b -resource-dir /usr/lib/swift -module-name main -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins
5.27 KB