Swift: NSTimer(...) crashes when called from extension's convenience initializer

Originator:radexpl
Number:rdar://18720947 Date Originated:
Status: Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
NSTimer(timeInterval:target:selector:...) initializer as well as the NSTimer.scheduledTimer... function get caught up in CFRelease loop and crash when they're called from convenience initializer defined on NSTimer in an extension

Steps to Reproduce:
(Look at the test case project)

Expected Results:


Actual Results:


Version:
osx 10.10, xcode 6.1

Notes:
This worked until Xcode 6.0 Beta 7. Never worked in 6.1 (from the earliest betas). Haven't tested on iOS.

Configuration:
n/a

Attachments:
'nstimer extension initializer crash test case.zip' was successfully uploaded.

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!