diff options
author | liu fengyun <liu@fengy.me> | 2017-02-06 14:51:24 +0100 |
---|---|---|
committer | liu fengyun <liu@fengy.me> | 2017-02-10 19:26:07 +0100 |
commit | 6823e15cf08c68ca67f688159536f7a506d1969e (patch) | |
tree | d7eee103b65b74cd37a5e2dd0f652610cfd76776 /tests/debug/while.scala | |
parent | b5a9c8c4d1f832f2cc024f9cfe855d6e57bd35f9 (diff) | |
download | dotty-6823e15cf08c68ca67f688159536f7a506d1969e.tar.gz dotty-6823e15cf08c68ca67f688159536f7a506d1969e.tar.bz2 dotty-6823e15cf08c68ca67f688159536f7a506d1969e.zip |
fix #1484: position of while incorrect in debug
Diffstat (limited to 'tests/debug/while.scala')
-rw-r--r-- | tests/debug/while.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/debug/while.scala b/tests/debug/while.scala new file mode 100644 index 000000000..0e5f8f8b0 --- /dev/null +++ b/tests/debug/while.scala @@ -0,0 +1,14 @@ +object Test { + + def main(args: Array[String]): Unit = { + var a = 1 + 2 + a = a + 3 + a = 4 + 5 // [break] [step: while] + + while (a * 8 < 100) { // [step: a += 1] + a += 1 // [step: while] [cont: print] + } + + print(a) // [break] [cont] + } +} |