Compiler doesn't catch self. omission error in closure for property referencing

Originator:an00na
Number:rdar://20732050 Date Originated:28-Apr-2015 02:13 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Swift 1.2
Classification:Other Bug Reproducible:Not Applicable
 
Summary:
If all member referencings in closure are property referencings, compiler doesn’t report error for self. omission which it should.

Steps to Reproduce:
Uncomment line 15 to see that any method referencing triggers the correct error reporting.

Sample code:
http://cl.ly/0r1m1K2H3s3f

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!