mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
The actual fix is to perform qualified lookup on a TypeExpr in `collectPossibleCalleesForApply`. This changes the behaviour of some test cases in `complete_multiple_trailingclosure.swift`, which now provide argument labels. To make the choices suggested less verbose, I refined the parameter matching to only match trailing closures to parameters of function types. In `INIT_FALLBACK_1` we technically shouldn't be suggesting `arg3` based on the matched argument types (the closure returns `Int` and the constructor with `arg3` requires the closure to return `String`), but AFAICT we aren't doing type-checking at this stage, so there's no way to rule it out.
50 KiB
50 KiB