Files
swift-mirror/test/IRGen/async/Inputs/resilient_class.swift
Slava Pestov c79de40225 IRGen: Emit async function pointers for resilient class and protocol dispatch thunks
This adds new kinds of link entities corresponding to the three
dispatch thunk link entity kinds:

- DispatchThunkAsyncFunctionPointer
- DispatchThunkInitializerAsyncFunctionPointer
- DispatchThunkAllocatorAsyncFunctionPointer
2021-01-27 15:21:22 -05:00

12 lines
153 B
Swift

open class BaseClass<T> {
var value: T
open func wait() async -> T {
return value
}
public init(_ value: T) {
self.value = value
}
}