Xcode-beta 5 (7A176x): source editor reports problem

Originator:bugreportopenradar
Number:rdar://22330553 Date Originated:18-Aug-2015 10:18 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A176x)
Classification:Serious Bug Reproducible:Always
 
Summary:
Xcode source editor encounters a problem.

Steps to Reproduce:
* Create a new iOS single view project for Swift
* In ViewController.swift, before the line that starts with ‘class ViewController’, paste the following code:

    extension SequenceType {
        func uniq<E: Hashable where E==Self.Generator.Element>() -> [E] {
            var seen: [E:Bool] = [:]
            return self.filter { seen.updateValue(true, forKey: $0) == nil }
        }
    }

Expected Results:
* Xcode continues showing the source code the normal way.

Actual Results:
* Xcode shows a message saying “Xcode encountered a problem. Source editor functionality is limited. Attempting to restore…”

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!