tduplicate_imports.nim 826 B

123456789101112131415161718
  1. discard """
  2. cmd: '''nim c --hint:Processing:off $file'''
  3. action: compile
  4. nimout: '''
  5. tduplicate_imports.nim(12, 23) Hint: duplicate import of 'strutils'; previous import here: tduplicate_imports.nim(12, 13) [DuplicateModuleImport]
  6. tduplicate_imports.nim(15, 20) Hint: duplicate import of 'foobar'; previous import here: tduplicate_imports.nim(14, 20) [DuplicateModuleImport]
  7. tduplicate_imports.nim(16, 10) Hint: duplicate import of 'strutils'; previous import here: tduplicate_imports.nim(12, 23) [DuplicateModuleImport]
  8. tduplicate_imports.nim(17, 8) Hint: duplicate import of 'strutils'; previous import here: tduplicate_imports.nim(16, 10) [DuplicateModuleImport]
  9. '''
  10. """
  11. import std/[strutils, strutils]
  12. import strutils as foobar
  13. import strutils as foobar
  14. from std/strutils import split
  15. import strutils except split