File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1131,3 +1131,22 @@ struct UseNonMutatingProjectedValueSet {
1131
1131
x = 42 // expected-error{{cannot assign to property: 'self' is immutable}}
1132
1132
}
1133
1133
}
1134
+
1135
+ // SR-11478
1136
+
1137
+ @propertyWrapper
1138
+ struct SR_11478_W < Value> {
1139
+ var wrappedValue : Value
1140
+ }
1141
+
1142
+ class SR_11478_C1 {
1143
+ @SR_11478_W static var bool1 : Bool = true // Ok
1144
+ @SR_11478_W class var bool2 : Bool = true // expected-error {{class stored properties not supported in classes; did you mean 'static'?}}
1145
+ @SR_11478_W class final var bool3 : Bool = true // expected-error {{class stored properties not supported in classes; did you mean 'static'?}}
1146
+ }
1147
+
1148
+ final class SR_11478_C2 {
1149
+ @SR_11478_W static var bool1 : Bool = true // Ok
1150
+ @SR_11478_W class var bool2 : Bool = true // expected-error {{class stored properties not supported in classes; did you mean 'static'?}}
1151
+ @SR_11478_W class final var bool3 : Bool = true // expected-error {{class stored properties not supported in classes; did you mean 'static'?}}
1152
+ }
You can’t perform that action at this time.
0 commit comments