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
// expected-warning@-1 {{main actor-isolated property 'b' cannot be used to satisfy global actor 'GlobalActor'-isolated protocol requirement}}
129
+
get{0}
130
+
set{}
131
+
}
132
+
133
+
@MainActorfunc test(){
134
+
// expected-warning@-1 {{main actor-isolated instance method 'test()' cannot be used to satisfy global actor 'GlobalActor'-isolated protocol requirement}}
135
+
}
136
+
}
137
+
}
138
+
139
+
@MainActor
140
+
protocolWithNonIsolated{
141
+
varprop:Int{getset}
142
+
// expected-note@-1 {{'prop' declared here}}
143
+
nonisolatedfunc test()
144
+
// expected-note@-1 {{mark the protocol requirement 'test()' 'async' to allow actor-isolated conformances}}
0 commit comments