mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
231 B
Swift
16 lines
231 B
Swift
public protocol MyProtocol {
|
|
func f()
|
|
}
|
|
|
|
@MainActor
|
|
public class MyClass { }
|
|
|
|
extension MyClass: @MainActor MyProtocol {
|
|
@MainActor public func f() { }
|
|
}
|
|
|
|
public protocol OtherProtocol {
|
|
}
|
|
|
|
extension MyClass: OtherProtocol { }
|