You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dante-Broggi opened this issue
Aug 14, 2018
· 1 comment
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
In the Xcode 10 beta 5 toolchain, the following works `correctly`.
In the DEVELOPMENT-SNAPSHOT-2018-08-10, it crashes the compiler with an "Abort trap: 6", and
"Assertion failed (![](foundElement && "ambiguity in enum case name lookup?)"), function filterForEnumElement, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swift/lib/Sema/TypeCheckPattern.cpp, line 98."
enumFoo {
casedozcasefoo(bar: Int)
casefoo(baz: Int)
}
letfoz = Foo.foo(baz:)
switchfoz(1) {
case .foo(letbar):
print(bar)
case .doz:
break
}
The text was updated successfully, but these errors were encountered:
Xcode toolchains don't have assertions enabled, so it's probably not working there either. It's also pretty disconcerting that that not-fully-covered switch is allowed.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Additional Detail from JIRA
md5: cd7bbdd5399d04f914d96c95335d9dac
Issue Description:
In the Xcode 10 beta 5 toolchain, the following works `correctly`.
In the DEVELOPMENT-SNAPSHOT-2018-08-10, it crashes the compiler with an "Abort trap: 6", and
"Assertion failed (![](foundElement && "ambiguity in enum case name lookup?)"), function filterForEnumElement, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swift/lib/Sema/TypeCheckPattern.cpp, line 98."
The text was updated successfully, but these errors were encountered: