[SR-7731] SourceKit doesn't handle tuple labels that are also keywords in function return types correctly #50271
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
I haven't had a chance to test it with a current master toolchain or 4.2 beta, sorry.
Additional Detail from JIRA
md5: cdcd72383fc448470d51f83b2f625a32
Issue Description:
This is valid code in Swift 4.1 (note the use of the keyword
in
both as a parameter label and as a label in the returned tuple):The compiler doesn't require backticks (
`in`
) in either place here, but SourceKit seems to treat the label in the return type as a keyword (i.e. Xcode highlights it as a keyword).Interestingly, the line:
is highlighted correctly, whereas in a line such as this:
the
in
also gets highlighted as a keyword.The text was updated successfully, but these errors were encountered: