[SR-12998] Raw Value of literal String #file breaks enum with String Protocol #55443
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: da1a27a777b6be474b5c910416171f6d
relates to:
Issue Description:
Bug with #file
enum Foo: String {
{{ case bar = #file}}
{{}}}
This causes an internal error: Segmentation Fault: 11
Is #file considered a literal String?
"(5)" is not a literal. But Apple's Swift 5.2 Guide describes #file, #line, #function, #colorLiteral, etc. all as literals.
___
Bug with nil
enum I:Int?{
{{ case a = nil}}
{{}}}
The text was updated successfully, but these errors were encountered: