We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ddf75c commit 4586086Copy full SHA for 4586086
test/Concurrency/assume_mainactor.swift
@@ -215,3 +215,21 @@ actor MyActor2 {
215
// NonIsolated and not if print was inferred to be main actor.
216
print("123")
217
}
218
+
219
+// https://github.com/swiftlang/swift/issues/82168 - used to fail
220
+nonisolated protocol P {
221
+ associatedtype AT
222
+ static var at: AT { get }
223
+}
224
225
+nonisolated struct KP<R: P, V> {
226
+ init(keyPath: KeyPath<R, V>) {}
227
228
229
+struct S: P {
230
+ let p: Int
231
+ struct AT {
232
+ let kp = KP(keyPath: \S.p)
233
+ }
234
+ static let at = AT() // used to fail here
235
0 commit comments