Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module MapExt =
- // Map type extension requires equivalent type constraint
- type Map<'TKey,'TValue> when 'TKey : comparison with
- // Extension method
- member this.Foo () = ()
- open MapExt
- let x = Map.empty
- x.Foo()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement