Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type FuncType<'a, 'b, 'c> = FuncType of ('b -> 'c)
- let dummy<'a> (x:int) = Unchecked.defaultof<int>
- let makeFunc (typ:FuncType<'a, 'b, 'c>) =
- let (FuncType f) = typ
- fun (_:'a) -> f
- let f2 = makeFunc (FuncType(dummy<int>))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement