I want to have a specific type for an argument in a F# function:
type NewType = string*int
let testFunction (arg1:NewType) : NewType =
("resultString", 2)
testFunction ("test", 3)
I want the type of the function to be:
NewType -> NewType
But the function type is:
string*int -> NewType
What should I do to enforce the type of the argument arg1 to be "NewType"?