Files
swift-mirror/lib/Sema/CSSimplify.cpp
John McCall 882035f003 Implement the conservative option for typechecking multiple trailing closures.
The current approach for type-checking single trailing closures
is to scan backwards from the end of the parameter list, looking
for something that can be passed a closure.  This generalizes that
to perform label-matching in reverse on any later trailing closures,
then pick up from that point when trying to place the unlabeled
trailing closure.

The current approach is really not a good language rule, but changing
it as much as we'd really like will require evolution approval and a
source break, so we have to be cautious.
2020-05-06 01:56:40 -04:00

382 KiB