[SR-14890] Code completion is not suggesting tuple labels because type checker is dropping them too early #57237
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
code completion
Area → source tooling: code completion
found by stress tester
Flag: An issue found by the SourceKit stress tester
source tooling
Area: IDE support, SourceKit, and other source tooling
Additional Detail from JIRA
md5: f480b061a7f95ce2b864f0bceaae4554
Issue Description:
In the following test case
0
and1
are suggested, notkey
andvalue
. It appears this is because the type checker is already converting the tuple to an unlabeled tuple (as requested byfoo
’s return type on themap
operation. When thereturn
is removed,key
andvalue
are correctly suggested.The text was updated successfully, but these errors were encountered: