mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
292 B
Swift
10 lines
292 B
Swift
// RUN: %target-typecheck-verify-swift -enable-library-evolution
|
|
|
|
public class ResilientClass {
|
|
@inlinable deinit {} // expected-error {{deinitializer can only be '@inlinable' if the class is '@_fixed_layout'}}
|
|
}
|
|
|
|
@_fixed_layout public class FixedLayoutClass {
|
|
@inlinable deinit {}
|
|
}
|