mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
296 B
Swift
14 lines
296 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module %s
|
|
|
|
@propertyWrapper
|
|
public struct TestWrapper {
|
|
public var wrappedValue: Int
|
|
public init(wrappedValue: Int) { self.wrappedValue = wrappedValue }
|
|
}
|
|
|
|
@frozen public struct Test {
|
|
@TestWrapper public var x: Int = 42
|
|
}
|
|
|