Files
swift-mirror/lib/Sema/CSSimplify.cpp
Pavel Yaskevich d56e62d65c [CSSimplify] Bind for-in patterns to holes if element type is Any
If the element type is `Any` i.e. `for (x, y) in [] { ... }`
it would never match the pattern and the pattern (`rhs` = `(x, y)`)
doesn't have any other source of contextual information,
so instead of waiting for elements to become holes with an
unrelated fixes, let's proactively bind all of the pattern
elements to holes.

Resolves:  rdar://100343275
2022-10-31 12:21:45 -07:00

554 KiB