[Swift 2.2] Fix regression with capturing class-constrained generic parameters

Hi Joe,

There was a regression in 2.2 resulting from some changes to closure representation — rdar://problem/24470533:

https://github.com/apple/swift/pull/1359

The bug does not occur in 3.0 because some other changes exposed and forced us to fix the underlying issue with AbstractionPatterns not supporting interface types — I will just check in a test to master instead.

Slava

Looks good - approved for swift-2.2-branch.

Thanks!
- Joe

···

On Feb 18, 2016, at 2:41 PM, Slava Pestov <spestov@apple.com> wrote:

Hi Joe,

There was a regression in 2.2 resulting from some changes to closure representation — rdar://problem/24470533: <rdar://problem/24470533:>

Fix closure capture boxes regression by slavapestov · Pull Request #1359 · apple/swift · GitHub

The bug does not occur in 3.0 because some other changes exposed and forced us to fix the underlying issue with AbstractionPatterns not supporting interface types — I will just check in a test to master instead.

Slava