mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* fix megatest newlines * still allow missing trailing newline for now but in a more strict way than before
23 lines
326 B
Nim
23 lines
326 B
Nim
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")
|