Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let awesome (x:string) =
- if x.Contains "awesome" then
- 5
- else
- 0
- (* everything is fine so far... *)
- let mutable guyFuckedUp = false
- let awesome2 (x:string) =
- if x.Contains "awesome" then
- 5 (* This expression should have type 'unit', but has type 'int' *)
- guyFuckedUp <- true
- else
- 0 (* This expression was expected to have type 'unit' but here has type 'int' *)
- (* clearly guyFuckedUp *)
- let ifyouhaveto (x:string) =
- if x.Contains "awesome" then
- guyFuckedUp <- true
- 5
- else
- 0
Add Comment
Please, Sign In to add comment