Allow importing templated functions when template args do not appear

in the function signature by adding explicit metatype parameters to
the function signature.
This commit is contained in:
Josh Learn
2021-09-29 22:26:41 -07:00
committed by Josh Learn
parent 25f7145f2d
commit f433ac2d58
9 changed files with 250 additions and 30 deletions

View File

@@ -5,7 +5,7 @@
// CHECK: func passThrough<T>(_ value: T) -> T
// CHECK: func passThroughConst<T>(_ value: T) -> T
// CHECK: func templateParameterReturnType<R, T, U>(_ a: T, _ b: U) -> R
// CHECK: func cannotInferTemplate<T>()
// CHECK: func cannotInferTemplate<T>(T: T.Type)
// CHECK: struct HasVariadicMemeber {
// CHECK: @available(*, unavailable, message: "Variadic function is unavailable")