[SR-6883] Bad completion for NSObject.self() #49432
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)
Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Additional Detail from JIRA
md5: 1605e6ce9e5e316e6c122dbceec8f8eb
Issue Description:
Consider this code:
When typing a.self, Xcode autocompletes that to a.self(), which fails to compile:
The text was updated successfully, but these errors were encountered: