Move statement: do not move into lambda beyond 'if/when/try/for/while'

#KT-9065 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-08-03 17:29:09 +02:00
committed by Vladimir Dolzhenko
parent ee5ecb232a
commit 19824201e2
28 changed files with 296 additions and 0 deletions
@@ -0,0 +1,9 @@
// MOVE: up
fun test() {
try {
} catch (e: Exception) {
run {
}
}
<caret>println()
}