File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ struct B {
1111}
1212
1313struct C {
14- @A @B var foo : Int // expected-error{{extraneous argument label ' wrappedValue:' in call }}
14+ @A @B var foo : Int // expected-error{{composed wrapper type 'B' does not match former ' wrappedValue' type 'Int' }}
1515}
Original file line number Diff line number Diff line change 11// RUN: %target-swift-frontend %s -typecheck -verify
22
33@propertyWrapper
4- struct Wrapper1 { // expected-note {{property wrapper type 'Wrapper1' declared here}}
4+ struct Wrapper1 {
55 var wrappedValue : Int ?
66}
77
88class Test1 {
99 @Wrapper1 var user : Int
10- // expected-error@-1 {{property type 'Int' does not match that of the 'wrappedValue' property of its wrapper type 'Wrapper1 '}}
10+ // expected-error@-1 {{property type 'Int' does not match 'wrappedValue' type 'Int? '}}
1111}
1212
1313@propertyWrapper
You can’t perform that action at this time.
0 commit comments