[SR-7069] Autocomplete dropdown thinks optional protocol methods are IUOs #49617
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
code completion
Area → source tooling: code completion
source tooling
Area: IDE support, SourceKit, and other source tooling
Attachment: Download
Environment
Xcode 9.2 (9C40b)
Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: 46a44ad16a716b0b227fc5dea7ef94da
Issue Description:
The Xcode autocomplete dropdown mistakenly believes that optional protocol methods are IUOs when in fact they're just regular optionals.
![](Screen Shot 2018-02-23 at 4.38.49 PM.png)
I know it's a regular optional because trying to call it like
foo.bar()
throws an error that says I didn't unwrap(() -> ())?
.The text was updated successfully, but these errors were encountered: