Xcode playground crash

Originator:konstantin.koval1
Number:rdar://20860745 Date Originated:07-May-2015 10:25 PM
Status:Duplicate Resolved:
Product:Developer Tools Product Version:Xcode 6.3.1 (6D1002)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Xcode is crashing in playground

//SupportCode.swift  

import QuartzCore
public func measure(call: () -> Void) {
    let startTime = CACurrentMediaTime()
    call()
    let endTime = CACurrentMediaTime()

    println("Time - \(endTime - startTime)")
}

//Playground code
measure {
    10 + 11
}

Steps to Reproduce:
- open Playground.
- click “Quick look” or “Show result” in the measure function body (10 + 11) instruction

Expected Results:
- Shouldn’t crash

Actual Results:
Xcode is crashing.

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!