Xcode-beta (7A120f): Compilation error calling assert
| Originator: | david.w.hart | ||
| Number: | rdar://21459429 | Date Originated: | 19-Jun-2015 02:38 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode-beta (7A120f) |
| Classification: | Serious Bug | Reproducible: | Always |
Drop the following error in a playground for a weird compilation error:
import UIKit
extension UIView {
var firstSubview: UIView? {
if let firstSubview = self.subviews.first {
assert(firstSubview != nil, "ASSERT COMPILATION ERROR")
return firstSubview
} else {
return nil
}
}
}
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!