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
unnamed.swift:9:27: error: expected ':' after 'case'
case #keyPath(bar)?:
^
unnamed.swift:9:27: error: expected expression
case #keyPath(bar)?:
^
unnamed.swift:9:14: error: expression pattern of type 'String' cannot match values of type 'String?'
case #keyPath(bar)?:
^~~~~~~~~~~~~
?
The text was updated successfully, but these errors were encountered:
Environment
Apple Swift version 4.0.2 (swiftlang-900.0.69.2 clang-900.0.38)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: 8322f86ed067f48daed43991a0c77edf
duplicates:
Issue Description:
The
?
sugar in case patterns doesn't parse properly when found after a#keyPath
expression:This produces the following errors:
The text was updated successfully, but these errors were encountered: