Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: newlines not printed to stdout, produces different output from nim #18

Closed
timotheecour opened this issue Jul 10, 2018 · 0 comments
Closed

Comments

@timotheecour
Copy link
Contributor

test.nim:

proc foo()=
  echo "test1"
  echo ""

  echo "test2"
  echo "\n"

  echo "test3"
  var s:string = nil
  echo s


  echo "test4"
  echo "a\n"

  echo "test5"
  echo "a\nb\n"

  echo "test6"
  echo "a\n\n"

  echo "done"
foo()
 inim
INim 0.2.5
Nim Compiler Version 0.18.1 [MacOSX: amd64] at /Users/timothee/.nimble/bin/nim
>>> import bugs/t38_echo
test1
test2
test3
test4
a
test5
a
b
test6
a
done
nim c -o:app -r test.nim
test1

test2


test3

test4
a

test5
a
b

test6
a


done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant