Skip to content

Conversation

hamishknight
Copy link
Contributor

@hamishknight hamishknight commented Sep 14, 2025

Previously we would only do this for SK_Fix, do the same for SK_Hole since otherwise the score clearing logic for the conjunction could result in losing the hole score.

Make sure we record a fix here to ensure we don't try to do CSApply
with holes.
Since we can run CSGen multiple times, we need to guard the emission
of the note on whether the TypeRepr was already marked invalid (i.e
whether we already emitted a diagnostic for it).
@hamishknight hamishknight changed the title [CS] Preserve fatal scoring information across conjunction elements [CS] Bail from conjunction for non-zero SK_Hole Sep 15, 2025
Previously we would only do this for `SK_Fix`, do the same for `SK_Hole`
since otherwise the score clearing logic for the conjunction could
result in losing the hole score.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight
Copy link
Contributor Author

@swift-ci please test Windows

@hamishknight hamishknight merged commit 75d60b3 into swiftlang:main Sep 17, 2025
5 checks passed
@hamishknight hamishknight deleted the preserve-fatal-score branch September 17, 2025 15:11
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.

2 participants