Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repl: fix an issue with
print
and println after the execution of `f…
- Loading branch information
1 parent
fd19458
commit 175ede5
Showing
6 changed files
with
21 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
vlib/v/slow_tests/repl/if_and_for_with_print_inside_them.repl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
mut numbers := [1,2,3,4,5] | ||
if 1 in numbers { | ||
println('yes') | ||
} | ||
println('hi') | ||
for number in numbers { | ||
println(number) | ||
} | ||
println(numbers) | ||
===output=== | ||
yes | ||
hi | ||
1 | ||
2 | ||
3 | ||
4 | ||
5 | ||
[1, 2, 3, 4, 5] |