Files
swift-mirror/test/IRGen/async/Inputs/protocol-1instance-void_to_void.swift
Nate Chandler e06d316fe7 [Async CC] Find wtable in async context in thunk.
Previously, when looking up a protocol method, the witness table was
always exepcted to be the final argument passed to the function.

That is true for sync protocol witnesses but not for async witnesses.
In the async case, the witness table is embedded in the async context.

Here, the witness table is dug out of the async context.

rdar://problem/71491604
2020-11-17 11:23:37 -08:00

14 lines
218 B
Swift

import _Concurrency
public protocol Protokol {
func protocolinstanceVoidToVoid() async
}
public struct Impl : Protokol {
public init() {}
public func protocolinstanceVoidToVoid() async {
print(self)
}
}