[SR-14402] [Code Compleiton] Different behavior on code completion given declaration order on top-level #56759
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
code completion
Area → source tooling: code completion
compiler
The Swift compiler in itself
source tooling
Area: IDE support, SourceKit, and other source tooling
Attachment: Download
Environment
Main snapshot 2021-03-21
Additional Detail from JIRA
md5: db26823d3f20cfbcdffb3758f877dcc4
Issue Description:
Given this declaration
And the code
If we are running o a top-level code like main.swift and use that type bellow declaration it is fine the completion gives value: A<Int>
But if we use above declaration the code completion gives value: <<error-type>>
The expression `value.f()` type checks fine and compiles correctly. The problem seems to be only on completion.
The text was updated successfully, but these errors were encountered: