mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Record the argument labels provided to a subscript in the solver, and use that to filter out subscript declarations with non-matching argument labels during function application. This reduces the number of overloaded subscript declarations that will be considered in later steps in the solver, reducing the solution space. *Disable* this optimization in the normal member-lookup path, which is intended to go away in the near future. This limits the scope of the change somewhat, so we can separately tackle the diagnostics issue. The one diagnostics change here is probably an improvement, because the user explicitly stated the argument labels, and is more likely missing a conversion on the argument than having typed the wrong label.
238 KiB
238 KiB