mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This used to cause SILGen to capture and subsequently load `self` as a constant. Then, when the super call was SILGen’d, it assumed that `self` would be loaded Boxed. Diagnose before hitting SILGen so we don’t have to pollute Lowering with code that handles `self` in this odd position.
// This source file is part of the Swift.org open source project // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors Repository: https://github.com/practicalswift/swift-compiler-crashes.git Web URL: https://github.com/practicalswift/swift-compiler-crashes