[SR-9978] SourceKit doesn't respect type restriction of an extension #52382
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
Swift 5 @ Xcode 10.2b3 (10P99q)
Swift 4.2 @ Xcode 10.1 (10B61)
Additional Detail from JIRA
md5: da61629a1215dbffee9f213dbe927bd2
duplicates:
Issue Description:
I have the following code:
The autocompletion on
catBox
incorrectly offers bothgetCat()
andgetDog()
methods.cat.getDog()
of course fails to compile because"'Box<Cat>' is not convertible to 'Box<Dog>'"
.The text was updated successfully, but these errors were encountered: