mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* De-underscore @frozen for enums * Add @frozen for structs, deprecate @_fixed_layout for them * Switch usage from _fixed_layout to frozen
16 lines
255 B
Swift
16 lines
255 B
Swift
@inline(__always) @inlinable public func testAlwaysInline(x: Bool) -> Bool {
|
|
return x
|
|
}
|
|
|
|
@frozen
|
|
public struct AlwaysInlineInitStruct {
|
|
@usableFromInline
|
|
var x: Bool
|
|
|
|
@inline(__always) @inlinable
|
|
public init(x x2: Bool) {
|
|
self.x = x2
|
|
}
|
|
}
|
|
|