undeclared_routime.nim 493 B

1234567891011121314
  1. discard """
  2. cmd: '''nim c --hints:off $file'''
  3. errormsg: "attempting to call routine: 'myiter'"
  4. nimout: '''undeclared_routime.nim(13, 15) Error: attempting to call routine: 'myiter'
  5. found 'undeclared_routime.myiter(a: string)[declared in undeclared_routime.nim(10, 9)]' of kind 'iterator'
  6. found 'undeclared_routime.myiter()[declared in undeclared_routime.nim(11, 9)]' of kind 'iterator'
  7. '''
  8. """
  9. iterator myiter(a:string): int = discard
  10. iterator myiter(): int = discard
  11. let a = myiter(1)