Reputation: 673
Given as sample function:
func sample<Z: Equatable, X: IntegerType>(from: Z.Type, to: X.Type) {
print("HELLO")
}
sample(String, to: Int)
I get the following error Missing argument for parameter 'to' in call
Am I missing something?
Upvotes: 0
Views: 972