young
(rtSwift)
1
@propertyWrapper
struct A<T> {
var wrappedValue: T
}
@propertyWrapper
struct B<T> {
var wrappedValue: T
}
struct Foo {
@A @B var vv = 1 // <== works here
}
func foo() {
@A @B var vv = 1 // error: closure captures '_vv' before it is declared
}
xAlien95
(Stefano De Carolis)
2
I can't reproduce the mentioned error using the latest development snapshot.