t18235.nim 326 B

123456789101112131415161718
  1. import m18235
  2. # this must error out because it was never actually exported
  3. doAssert(not declared(foo))
  4. doAssert not compiles(foo())
  5. doAssert(not declared(foooof))
  6. doAssert not compiles(foooof())
  7. doAssert(not declared(oof))
  8. doAssert not compiles(oof())
  9. # this should have been exported just fine
  10. bar()
  11. barrab()
  12. rab()
  13. baz()