mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Introduce a new constraint kind, BindParam, which relates the type of a function parameter to the type of a reference to it from within the function body. If the param type is an inout type, the ref type is an lvalue type with the same underlying object type; otherwise the two types must be the same. This prevents DeclRefExprs from being inferred to have inout type in some cases. <rdar://problem/15998821> Fail to infer types for closure that takes an inout argument Swift SVN r32183
162 KiB
162 KiB