I have found that the wrong number of parameters is returned when retrieving FunctionInfo for the following closure.
let t = (@convention(thin) (Int, String) async throws -> String).self
let md = FunctionMetadata(type: t)
let info = md.info()
print(info.numberOfArguments) // -> 131074
Hi, I think it is a great library.
I have found that the wrong number of parameters is returned when retrieving FunctionInfo for the following closure.
It seems to be caused by an incorrect bit mask.
https://github.com/apple/swift/blob/ade2671aee6853e3b76511a9c9a57945676ef237/include/swift/ABI/MetadataValues.h#L1029-L1042
Here is my Swift environment