tnav1.nim 462 B

12345678910111213141516171819202122232425262728293031323334
  1. discard """
  2. cmd: "nim check $options --defusages:$file,12,7 $file"
  3. nimout: '''def tnav1_temp.nim(11, 10)
  4. usage tnav1_temp.nim(12, 8)
  5. '''
  6. """
  7. import std / [times]
  8. proc foo(x: int) =
  9. echo x
  10. foo(3)
  11. echo "yes", 1 != 3
  12. #!EDIT!#
  13. discard """
  14. cmd: "nim check $options --defusages:$file,15,2 $file"
  15. nimout: '''def tnav1_temp.nim(12, 6)
  16. usage tnav1_temp.nim(15, 1)
  17. '''
  18. """
  19. import std / [times]
  20. proc foo(x: int) =
  21. echo x
  22. foo(3)
  23. echo "yes", 1 != 3