Commit Graph

2 Commits

Author SHA1 Message Date
Hamish Knight
4a2c6121d4 [Completion] Avoid type parameters in expected types
There actually only appears to be a single place where we were
letting interface types into the expected type for a completion,
fix it up to use a contextual type.
2025-03-05 12:59:46 +00:00
Hamish Knight
7c7e914dfe [Completion] Skip tryOptimizeGenericDisjunction if there's a completion child
Attempting to favor a disjunction choice here
can lead to unhelpful results if there's e.g a code
completion token argument, since it acts as a
placeholder.

rdar://127844278
2024-06-12 19:38:09 +01:00