mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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
214 B
Swift
16 lines
214 B
Swift
@frozen
|
|
public struct X {
|
|
@inlinable
|
|
public init() { }
|
|
}
|
|
|
|
@inlinable
|
|
@inline(never)
|
|
public func the_thing<T>(t t : T) { }
|
|
|
|
@inlinable
|
|
@inline(never)
|
|
public func the_thing_it_does(x x : X) {
|
|
the_thing(t: x)
|
|
}
|