Swift: Playground don't deallocate object

Originator:stephan.michels
Number:rdar://17305100 Date Originated:13-Jun-2014 08:20 PM
Status:Open Resolved:
Product:Developer Tools Product Version:10.10
Classification:Other Bug Reproducible:Always
 
If I run following code in the playground, the instance of the ObjectA don’t get deallocated. 

import Cocoa

class ObjectA {
	init() {
		println("Init");
	}
	
	deinit {
		println("Deinit");
	}
}

var instanceA : ObjectA?

autoreleasepool {
	instanceA = ObjectA();
	instanceA = nil
}

println("Finish")

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!