You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: test/Distributed/distributed_actor_inference.swift
+2-2
Original file line number
Diff line number
Diff line change
@@ -59,8 +59,8 @@ distributed actor SomeDistributedActor_6 {
59
59
60
60
distributedactorBadValuesDistributedActor_7{
61
61
distributedvarvarItNope:Int{13} // we allow these
62
-
distributedletletItNope:Int=13 // expected-error{{static property 'letItNope' cannot be 'distributed', because it is not a computed get-only property}}
63
-
distributed lazy varlazyVarNope:Int=13 // expected-error{{'distributed' computed property 'lazyVarNope' can only be have a 'get' implementation}}
62
+
distributedletletItNope:Int=13 // expected-error{{property 'letItNope' cannot be 'distributed', only computed properties can}}
63
+
distributed lazy varlazyVarNope:Int=13 // expected-error{{property 'lazyVarNope' cannot be 'distributed', only computed properties can}}
64
64
distributed subscript(nope:Int)->Int{ nope *2} // expected-error{{'distributed' modifier cannot be applied to this declaration}}
65
65
distributedstaticletstaticLetNope:Int=13 // expected-error{{'distributed' property 'staticLetNope' cannot be 'static'}}
66
66
distributedstaticvarstaticVarNope:Int{13} // expected-error{{'distributed' property 'staticVarNope' cannot be 'static'}}
Copy file name to clipboardexpand all lines: test/Distributed/distributed_actor_isolation.swift
+4-4
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,8 @@ struct NotCodableValue { }
28
28
29
29
distributedactorDistributedActor_1{
30
30
31
-
letname:String="alice" // expected-note{{access to this property is only permitted within the distributed actor 'DistributedActor_1'}}
32
-
varmutable:String="alice" // expected-note{{access to this property is only permitted within the distributed actor 'DistributedActor_1'}}
31
+
letname:String="alice" // expected-note{{access to property 'name' is only permitted within distributed actor 'DistributedActor_1'}}
32
+
varmutable:String="alice" // expected-note{{access to property 'mutable' is only permitted within distributed actor 'DistributedActor_1'}}
33
33
varcomputedMutable:String{
34
34
get{
35
35
"hey"
@@ -39,8 +39,8 @@ distributed actor DistributedActor_1 {
39
39
}
40
40
}
41
41
42
-
distributedletletProperty:String="" // expected-error{{static property 'letProperty' cannot be 'distributed', because it is not a computed get-only property}}
43
-
distributedvarvarProperty:String="" // expected-error{{'distributed' computed property 'varProperty' can only be have a 'get' implementation}}
42
+
distributedletletProperty:String="" // expected-error{{property 'letProperty' cannot be 'distributed', only computed properties can}}
43
+
distributedvarvarProperty:String="" // expected-error{{property 'varProperty' cannot be 'distributed', only computed properties can}}
44
44
45
45
distributedstaticfunc distributedStatic(){} // expected-error{{'distributed' method cannot be 'static'}}
0 commit comments