[SR-11054] “Expression failed to parse, unknown error” only in Xcode 10.2.1 playgrounds #53446
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
PlaygroundTransform
Environment
macOS Mojave 10.14.5
Xcode 10.2.1 Playgrounds
Swift 5.0
Additional Detail from JIRA
md5: 2012d30ee71bc653128fbacd64c97987
Issue Description:
Expression failed to parse, unknown error
The following code triggers this strange error message in the console area at the bottom of Xcode 10.2.1 Playgrounds.
The issue is fixed by or adding a question mark after mainLabel to make the optional chaining kick in:
Or by removing the exclamation mark from the vc property, making the implicit optional unwrapping only one level deep instead of two:
This error only appears in Xcode 10.2.1 Playgrounds. It compiles successfully in Xcode 10.2.1 projects. We also discussed this issue for a bit in the Swift forum here: https://forums.swift.org/t/expression-failed-to-parse-unknown-error-only-in-xcode-10-2-1-playgrounds
The text was updated successfully, but these errors were encountered: