Closed ahoppen closed 3 months ago
https://github.com/apple/swift/pull/74241 https://github.com/apple/sourcekit-lsp/pull/1471
@swift-ci Please test
https://github.com/apple/swift/pull/74241 https://github.com/apple/sourcekit-lsp/pull/1471
@swift-ci Please test
https://github.com/apple/swift/pull/74241 https://github.com/apple/sourcekit-lsp/pull/1471
@swift-ci Please test Windows
Linked to and https://github.com/apple/swift/pull/74241 and https://github.com/apple/sourcekit-lsp/pull/1471
We treated enum case parameters the same way as function parameters and weren’t considering that they can be unlabeled. That caused us to insert eg.
_
in front of the case’s type, producingcase myCase(_ String)
, which is invalid. ReportenumCaseParameters
as a special parameter kind so that sourcekitd can work with it.https://github.com/apple/sourcekit-lsp/issues/1228