Xcode-beta (7A121l): Swift compiler crash when property of closure and function with same name and signature

Originator:david.w.hart
Number:rdar://21640191 Date Originated:01-Jul-2015 11:31 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A121l)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
I get a swift compiler crash and it seems to happen when I declare a closure property with the same name and signature as another function in the class.

Steps to Reproduce:
Compile the following piece of code:

class GenericClass<T> {
	private var publish: T -> ()
	
	func publish(message: T) {
		self.publish(message)
	}
}

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!