Commits

Chris Lattner committed b660cb3c8e6
Enhance the general parameter list matching logic in CSDiags to know about argument list mismatches, and diagnose them with a very specific error when they occur in member lookups. This fixes <rdar://problem/22356434> QoI: Missing diagnostic for invalid arguments passed to enum case constructor where before we'd produce: ee.swift:5:16: error: type of expression is ambiguous without more context let list: E = .C(wrongLabel: 0) ~^~~~~~~~~~~~~~~~ now we produce: ee.swift:1:17: error: incorrect argument label in call (have 'wrongLabel:', expected 'label:') let list: E = .C(wrongLabel: 0) ^~~~~~~~~~~ label I think that unresolved member exprs now get good diagnostics in all cases that they have a contextual type, but of course there are lots more cases where we're not getting a contextual type. Swift SVN r31402