Guest User

Untitled

a guest
Feb 6th, 2018
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.44 KB | None | 0 0
  1. # BEFORE
  2. Error: type mismatch: got (int literal(1), bool)
  3. but expected one of:
  4. proc checkThis(a, b: int)
  5. first type mismatch at position: 2
  6. required type: int
  7. but expression 'true' is of type: bool
  8.  
  9. expression: checkThis(1, true)
  10.  
  11. # AFTER
  12. Error: type mismatch: got (int literal(1), bool) but expected one of:
  13. proc checkThis(a, b: int)
  14. first type mismatch at position: 2 (Needed: int, Got: 'true' (bool))
  15. expression: checkThis(1, true)
Advertisement
Add Comment
Please, Sign In to add comment