Xcode 7.3: Fix-It error resulting in unresolved identifier

Originator:aralbalkan
Number:rdar://25356345 Date Originated:25-Mar-2016 10:17 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.3 (7D175)
Classification:UI/Usability Reproducible:Always
 
Summary:

Code provided by Fix-It does not compile 

Steps to Reproduce:

The following code results in the error (see attached screenshots):

    if let item = item as? String
    {
        // self.wormlog.log("Got item as string: \(item)")
    }

(There was code in a conditional that was commented out.)

The suggested, incorrect, Fix-It is:

if (m as? String) != nil

Which results in the error:

Use of unresolved identifier 'm'

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!