tinclude.nim 1.1 KB

1234567891011121314151617181920212223242526
  1. # import that has an include:
  2. # * def calls must work into and out of includes
  3. # * outline calls on the import must show included members
  4. import fixtures/minclude_import
  5. proc go() =
  6. discard create().say()
  7. go()
  8. discard """
  9. $nimsuggest --tester $file
  10. >def $path/tinclude.nim:7:14
  11. def;;skProc;;minclude_import.create;;proc (greeting: string, subject: string): Greet{.noSideEffect, gcsafe, raises: <inferred> [].};;*fixtures/minclude_include.nim;;3;;5;;"";;100
  12. >def $path/fixtures/minclude_include.nim:3:71
  13. def;;skType;;minclude_types.Greet;;Greet;;*fixtures/minclude_types.nim;;4;;2;;"";;100
  14. >def $path/fixtures/minclude_include.nim:3:71
  15. def;;skType;;minclude_types.Greet;;Greet;;*fixtures/minclude_types.nim;;4;;2;;"";;100
  16. >outline $path/fixtures/minclude_import.nim
  17. outline;;skProc;;minclude_import.say;;*fixtures/minclude_import.nim;;7;;5;;"";;100
  18. outline;;skProc;;minclude_import.create;;*fixtures/minclude_include.nim;;3;;5;;"";;100
  19. outline;;skProc;;minclude_import.say;;*fixtures/minclude_import.nim;;13;;5;;"";;100
  20. """
  21. # TODO test/fix if the first `def` is not first or repeated we get no results