Swift playground: reproducible crash

Originator:garth
Number:rdar://23944255 Date Originated:17-Dec-2015 01:33 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.2 (7C68)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
The following code pasted into an Xcode playground reproducibly generates the error “Playground execution terminated because the process stopped unexpectedly.”


import SpriteKit

extension SKSpriteNode {
    var stretchable: Bool {
        set(stretch) {
            if stretch {
                centerRect = CGRectMake(0.4, 0.4, 0.2, 0.2)
            } else {
                centerRect = CGRectMake(0.0, 0.0, 1.0, 1.0)
            }
        }
        get {
            return centerRect == CGRectMake(0.4, 0.4, 0.2, 0.2)
        }
    }
}

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!