repl: default printing fix and test

pull/1593/head
Henrixounez 2019-08-12 15:09:38 +02:00 committed by Alexander Medvednikov
parent decdd8be9f
commit 2ba1edaa80
2 changed files with 8 additions and 1 deletions

View File

@ -1349,7 +1349,7 @@ fn run_repl() []string {
}
lines << line
vals := s.split('\n')
for i:=0; i<vals.len-1; i++ {
for i:=0; i<vals.len; i++ {
println(vals[i])
}
}

View File

@ -0,0 +1,7 @@
num := 1
string := 'Hello'
num
string
===output===
1
Hello