23 lines
506 B
Swift
23 lines
506 B
Swift
import Foundation
|
|
|
|
protocol GenericProtocol {
|
|
associatedtype C: AnyObject
|
|
associatedtype V
|
|
|
|
var readOnlyPropertyC: C { get }
|
|
var readWritePropertyV: V { get set }
|
|
|
|
var constant: Int { get }
|
|
var optionalProperty: V? { get set }
|
|
|
|
init(theC: C, theV: V)
|
|
|
|
func callSomeC(theC: C) -> Int
|
|
func callSomeV(theV: V) -> Int
|
|
func compute(classy: C, value: V) -> C
|
|
func noReturn()
|
|
|
|
func computeAsync(classy: C, value: V) async -> (C, V)
|
|
func noReturnAsync() async
|
|
}
|