Files
swift-mirror/lib/Sema/CSSimplify.cpp
Pavel Yaskevich 7898b5a088 [CSSimplify] Disfavor choices that have injected callAsFunction
Ambiguities like:

```
struct S {
  init(v: Int) {}
  init(v: Int, _: () -> Void) {}

  func callAsFunction(_: () -> Void) {}
}

S(v: 42) {
}
```

Should always be resolved in favor of choice that doesn't require
injection of `.callAsFunction`, so let's try to avoid solving if
such an overload has already been found.
2022-05-26 00:47:34 -07:00

521 KiB