Skip to content

Commit 9b4f1f0

Browse files
committed
[NFC] Update validation tests with new property wrapper diagnostics
1 parent 7dffff7 commit 9b4f1f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

validation-test/compiler_crashers_2_fixed/sr11599.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ struct B {
1111
}
1212

1313
struct 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
}

validation-test/compiler_crashers_2_fixed/sr11684.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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

88
class 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

0 commit comments

Comments
 (0)