Calling a convenience init from another convenience init (both within the same extension)
| Originator: | alec.stanford.larson | ||
| Number: | rdar://17311296 | Date Originated: | 13-Jun-2014 06:03 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode Version 6.0 (6A215l) |
| Classification: | Crash | Reproducible: | Always |
Summary:
Calling a convenience init from another convenience init when both are in an extension results in a compiler error when building and crashes an Xcode Playground
Steps to Reproduce:
1. Paste the code below into a new Xcode Playground
class Test {}
extension Test {
convenience init (wow: Double, nice: Bool) {
self.init()
}
convenience init (wow: Double) {
// Uncomment this line
// self.init(wow: wow, nice: true)
}
}
2. Uncomment the line reading "self.init(wow: wow, nice: true)"
Expected Results:
Xcode continues working normally and the convenience inits work accordingly
Actual Results:
Xcode crashes in a playground & prevents a project from being built successfully using command+B
Version:
Xcode
Version 6.0
Build 6A215l
OSX
Version 10.9.3
Build 13D65
Notes:
Configuration:
Processor: 2.4 GHz Intel Core i5
Memory: 4 GB 1600 MHz DDR3
Macbook Pro, Retina, 13-inch, Late 2013
Attachments:
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!