Closure for Pointing Optional Pointer's Type Check Issue #71580
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
When using
if
to return pointer with optional value in closure (e.g.UnsafeMutablePointer<Int?>
), Swift is unable to check the closure return value's type correctly.Reproduction
Expected behavior
When the closure's return value is not specified, the closure is expected to return
UnsafeMutablePointer<Int?>
value.Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: