Xcode-beta (8S174q): Analyzer does not detect a nil-return from a nonnull-method

Originator:raise.rescue
Number:rdar://27605637 Date Originated:29-Jul-2016 10:14 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (8S174q)
Classification:Other Bug Reproducible:Always
 
Summary:
A method that returns nil using the ?:-operator, where the alternative-return-value is a call-expression, does not detect that the first return-value is the nil-literal.

Steps to Reproduce:
Open the attached project and start the analyzer in Xcode 8b3.

Expected Results:
The analyzer should show a warning in line 29 that nil is being returned.

Actual Results:
The analyzer finds no issue.

Regression:
-

Notes:
-

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!