Using 'super' in a closure where 'self' is explicitly captured is not yet supported

Originator:keithbsmiley
Number:rdar://23571013 Date Originated:16-Nov-2015 10:41 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Swift 2.1
Classification:Other Bug Reproducible:Always
 
Summary:

Currently if you attempt to call super in a closure where you are weakly
capturing self, you cannot. Based on the compiler error this is a known
issue.

Steps to reproduce:

1. Attempt to compile the attached example:
  `swiftc SwiftSuperClosure.swift`

OR:

1. Create a class with a function
2. Create another class that subclasses the original
3. Override the function in the subclass
4. Create a closure that weakly captures self
5. Attempt to call super from the closure

Expected results:

Everything compiles and works fine!

Actual results:

This compiler error is produced:

```
error: using 'super' in a closure where 'self' is explicitly captured is
not yet supported
```

Comments

https://github.com/keith/radars/tree/master/SwiftSuperClosure

By keithbsmiley at Nov. 17, 2015, 6:42 a.m. (reply...)

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!