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
_ = \Door.unsafeGlobActor_mutable // expected-warning {{cannot form key path to main actor-isolated property 'unsafeGlobActor_mutable'; this is an error in Swift 6}}
62
62
}
63
63
64
64
func tryNonSendable(){
@@ -69,7 +69,7 @@ func tryNonSendable() {
69
69
70
70
func tryKeypaths(){
71
71
_ = \Door.unsafeGlobActor_immutable
72
-
_ = \Door.unsafeGlobActor_mutable // okay for now
72
+
_ = \Door.unsafeGlobActor_mutable // expected-warning {{cannot form key path to main actor-isolated property 'unsafeGlobActor_mutable'; this is an error in Swift 6}}
73
73
74
74
_ = \Door.immutable
75
75
_ = \Door.globActor_immutable
@@ -84,7 +84,7 @@ func tryKeypaths() {
84
84
let _ :PartialKeyPath<Door>= \.mutable // expected-error{{cannot form key path to actor-isolated property 'mutable'}}
85
85
let _ :AnyKeyPath= \Door.mutable // expected-error{{cannot form key path to actor-isolated property 'mutable'}}
86
86
87
-
_ = \Door.globActor_mutable // okay for now
87
+
_ = \Door.globActor_mutable // expected-warning {{cannot form key path to main actor-isolated property 'globActor_mutable'; this is an error in Swift 6}}
88
88
_ = \Door.[0] // expected-error{{cannot form key path to actor-isolated subscript 'subscript(_:)'}}
89
-
_ = \Door.["hello"] // okay for now
89
+
_ = \Door.["hello"] // expected-warning {{cannot form key path to main actor-isolated subscript 'subscript(_:)'; this is an error in Swift 6}}
0 commit comments