mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user