File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,13 @@ class Superclass {
169
169
var x : Int = 0
170
170
}
171
171
172
+ class SubclassOfClassWithDelegates : ClassWithDelegates {
173
+ override var x : Int {
174
+ get { return $x. value }
175
+ set { $x. value = newValue }
176
+ }
177
+ }
178
+
172
179
class SubclassWithDelegate : Superclass {
173
180
@Wrapper ( value: 17 )
174
181
override var x : Int { get { return 0 } set { } } // expected-error{{property 'x' with attached delegate cannot override another property}}
@@ -593,7 +600,7 @@ struct NoDefaultInitializerStruct { // expected-note{{'init(x:)' declared here}}
593
600
594
601
class DefaultInitializerClass {
595
602
@Wrapper ( value: true )
596
- final var x
603
+ var x
597
604
598
605
@WrapperWithInitialValue
599
606
final var y : Int = 10
You can’t perform that action at this time.
0 commit comments