REPL: improve "are all errors at EOF" detection

Also ignore whitespaces and comments that appear after the last error in
a REPL line

 #KT-15172 Fixed
This commit is contained in:
Alexander Udalov
2017-06-06 17:55:53 +03:00
parent 2326b5faf3
commit 6f22baa0f6
3 changed files with 36 additions and 7 deletions
@@ -0,0 +1,19 @@
>>> fun f1(): String {
...
... return "1"
... }
>>> fun f2(): String { // comment
... return "2" // comment
... } // comment
>>> fun f3(): String {
... /* comment */
...
... // comment
... return "3"
... }
>>> fun f4(): String {
... return "4"
... }
>>>
>>> f1() + f2() + f3() + f4()
1234