[SR-2687] @discardableResult won't work when Optional chaining + Optional return value #45292
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
Xcode 8
Additional Detail from JIRA
md5: 15cd9b5dacd13a919a798211f1ade407
Issue Description:
@discardableResult won't work in Swift 3 (Xcode 8) when:
1. Optional chaining (already solved in old issues)
2. Optional return value (probably new)
Please see below gist for bug reproduction.
https://gist.github.com/inamiy/d4afae28fad9d206a1f8d5dcac871d4c
The text was updated successfully, but these errors were encountered: