swift
beaaee7a - [ConstraintSystem] Don't increase the score for unapplied function references

Commit
4 years ago
[ConstraintSystem] Don't increase the score for unapplied function references if the expression is an argument to `#selector`. For `#selector` arguments, functions and properties are syntactically distinct with the getter/setter label, so the solver should not unconditionally prefer properties to unapplied functions. A better fix for this is to port over the `#selector` diagnostics from CSApply, and not attempt invalid disjunction choices based on the selector kind on the valid code path.
Author
Committer
Parents
Loading