Files
swift-mirror/test/Inputs/print-shims-stdlib.swift
Nate Chandler 0d8aac1086 [Test] Verified called witness.
Previously, the test didn't actually verify that the called witness
method was the witness method from the right method--all the methods had
the same implementation and just forwarded the type along to be printed.
Now an id specific to each method is printed as well.
2023-02-14 20:54:06 -08:00

13 lines
248 B
Swift

import Swift
@_silgen_name("printGenericType")
public func printGenericType<T>(_ t: T.Type) {
print(T.self)
}
@_silgen_name("printGenericTypeAndWord")
public func printGenericType<T>(_ t: T.Type, _ w: Builtin.Word) {
print(T.self, Int(w))
}