1234567891011121314151617181920212223 |
- discard """
- output: '''
- verstuff
- '''
- cmd: "nim c --gc:arc $file"
- """
- # bug #13622
- import strformat
- template necho*(args: string) {.dirty.} =
- if getCurrentException() != nil:
- echo args
- else:
- stdout.writeLine(args)
- proc main(cond: bool; arg: string) =
- if cond:
- necho &"ver{arg}\n"
- main(true, "stuff")
|