tnav1.nim 478 B

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