Files
swift-mirror/test/Serialization/Inputs/def_isolated_conformance.swift
Doug Gregor 0e873e723c [Isolated conformances] Change syntax to @<global actor type> P
Instead of using the `isolated P` syntax, switch to specifying the
global actor type directly, e.g.,

   class MyClass: @MainActor MyProto { ... }

No functionality change at this point
2025-03-12 23:18:10 -07:00

11 lines
158 B
Swift

public protocol MyProtocol {
func f()
}
@MainActor
public class MyClass { }
extension MyClass: @MainActor MyProtocol {
@MainActor public func f() { }
}