Skip to content

Conversation

hamishknight
Copy link
Contributor

Remove the remaining uses in simplifyType/resolveType, producing an ErrorType instead.

@hamishknight
Copy link
Contributor Author

@swift-ci please SourceKit stress test

@hamishknight
Copy link
Contributor Author

swiftlang/llvm-project#11551

@swift-ci please test

Add `hasBareError` and `isBareErrorType` to check whether a type is
an ErrorType without an underlying original type (i.e prints as `_`).
…Type`

This means we now either produce a bare ErrorType, or an ErrorType
with a generic parameter original type for a generic parameter hole.
We ought to further consolidate this logic by sinking the generic
parameter original type replacement into `simplifyType` itself, but
I'm leaving that for a future patch since it affects completion
results and I want to try keep this close to NFC.
We have now removed all uses of this type.
@hamishknight
Copy link
Contributor Author

swiftlang/llvm-project#11556

@swift-ci please smoke test

@hamishknight hamishknight merged commit 55a38ba into swiftlang:main Oct 3, 2025
3 checks passed
@hamishknight hamishknight deleted the fish-whisperer branch October 3, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants