mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
351 B
Swift
18 lines
351 B
Swift
// RUN: %target-swift-frontend -typecheck %s -verify
|
|
|
|
// https://github.com/apple/swift/issues/54004
|
|
|
|
@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 type of 'A.wrappedValue', which is 'Int'}}
|
|
}
|