mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
In `FailureDiagnosis::visitSubscriptExpr` if there is only a single candidate available, verify that the problem is actually related to the contextual mismatch by type-checking whole subscript without contextual info, if that returns a type - it's contextual, otherwise diagnose as incorrect argument type problem. Resolves: rdar://problem/31977679
3.3 KiB
3.3 KiB