mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
295 B
Swift
16 lines
295 B
Swift
// RUN: %target-swift-frontend -typecheck %s -verify
|
|
|
|
@propertyWrapper
|
|
struct A {
|
|
var wrappedValue: Int
|
|
}
|
|
|
|
@propertyWrapper
|
|
struct B {
|
|
var wrappedValue: Int
|
|
}
|
|
|
|
struct C {
|
|
@A @B var foo: Int // expected-error{{composed wrapper type 'B' does not match former 'wrappedValue' type 'Int'}}
|
|
}
|