mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
499 B
Swift
17 lines
499 B
Swift
// RUN: %target-swift-frontend -emit-ir -o/dev/null -parse-as-library -module-name test -validate-tbd-against-ir=all %s
|
|
// RUN: %target-swift-frontend -emit-ir -o/dev/null -parse-as-library -module-name test -validate-tbd-against-ir=all -enable-library-evolution %s
|
|
|
|
@propertyWrapper
|
|
public struct Wrapper<Value> {
|
|
public var wrappedValue: Value
|
|
|
|
public init(wrappedValue: Value) {
|
|
self.wrappedValue = wrappedValue
|
|
}
|
|
}
|
|
|
|
public struct UseWrapper {
|
|
@Wrapper public var string = "hello"
|
|
}
|
|
|