Files
swift-mirror/lib/Sema/CSSimplify.cpp
Pavel Yaskevich c20621643b [CSSimplify] Attempt to split trailing closures into an implicit .callAsFunction
In situations like `T(...) { ... }` where `T` is a callable type,
it's not immediately clear whether trailing closures are associated
with `.init` of `T` or implicit `.callAsFunction`. So if constructor
didn't match trailing closures, let's attempt to split them off and
form an implicit `.callAsFunction` call with them as a fallback.
2022-02-03 15:33:38 -08:00

495 KiB