mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix a regression introduced by moving the type checking of closure captures into the constraint system. The pattern-type optimization for initializations was causing inference of a double-optional where there shouldn't be one, manifesting in a failure involving implicitly unwrapped optionals and `weak self` captures. Fixes rdar://problem/67351438.
2.9 KiB
2.9 KiB