tuse.nim 617 B

1234567891011121314151617181920212223
  1. # basic tests for use
  2. # bug #58
  3. proc someOtherProc() =
  4. discard
  5. someOtherProc()
  6. proc #[!]#someProc*() =
  7. discard
  8. #[!]#someProc()
  9. discard """
  10. $nimsuggest --tester $file
  11. >use $1
  12. def;;skProc;;tuse.someProc;;proc (){.noSideEffect, gcsafe, raises: <inferred> [].};;$file;;9;;5;;"";;100
  13. use;;skProc;;tuse.someProc;;proc (){.noSideEffect, gcsafe, raises: <inferred> [].};;$file;;12;;0;;"";;100
  14. >use $2
  15. def;;skProc;;tuse.someProc;;proc (){.noSideEffect, gcsafe, raises: <inferred> [].};;$file;;9;;5;;"";;100
  16. use;;skProc;;tuse.someProc;;proc (){.noSideEffect, gcsafe, raises: <inferred> [].};;$file;;12;;0;;"";;100
  17. """