tv3_forward_definition.nim 1.0 KB

123456789101112131415161718192021222324
  1. proc de#[!]#mo(): int
  2. proc de#[!]#mo(): int = 5
  3. let a = de#[!]#mo()
  4. discard """
  5. $nimsuggest --v3 --tester $file
  6. >use $1
  7. use skProc tv3_forward_definition.demo proc (): int{.noSideEffect, gcsafe.} $file 1 5 "" 100
  8. def skProc tv3_forward_definition.demo proc (): int{.noSideEffect, gcsafe.} $file 3 5 "" 100
  9. use skProc tv3_forward_definition.demo proc (): int{.noSideEffect, gcsafe.} $file 5 8 "" 100
  10. >use $2
  11. use skProc tv3_forward_definition.demo proc (): int{.noSideEffect, gcsafe.} $file 1 5 "" 100
  12. def skProc tv3_forward_definition.demo proc (): int{.noSideEffect, gcsafe.} $file 3 5 "" 100
  13. use skProc tv3_forward_definition.demo proc (): int{.noSideEffect, gcsafe.} $file 5 8 "" 100
  14. >declaration $1
  15. declaration skProc tv3_forward_definition.demo proc (): int{.noSideEffect, gcsafe.} $file 3 5 "" 100
  16. >declaration $2
  17. declaration skProc tv3_forward_definition.demo proc (): int{.noSideEffect, gcsafe.} $file 1 5 "" 100
  18. >declaration $3
  19. declaration skProc tv3_forward_definition.demo proc (): int{.noSideEffect, gcsafe.} $file 1 5 "" 100
  20. """