Advertisement
Guest User

Untitled

a guest
Jun 19th, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. -------------
  2. TEST.FS FILE:
  3. -------------
  4.  
  5. namespace Testing
  6.  
  7. /// The shared type.
  8. type Test =
  9. | Test1
  10. | Test2
  11.  
  12.  
  13. --------------
  14. TEST.FSX FILE:
  15. --------------
  16.  
  17. #load "test.fs"
  18.  
  19. open System
  20. open Testing
  21.  
  22. let matchAgainstTest = function
  23. | Test1 -> "Test1 matched"
  24. | Test2 -> "Test2 matched"
  25.  
  26.  
  27. Test2
  28. |> matchAgainstTest
  29. |> printfn "%s"
  30.  
  31. printfn "Press any key to exit..."
  32. Console.ReadKey true |> ignore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement