ReplacementPerformer: always copy statement to insert #KT-17273 Fixed

This commit is contained in:
Mikhail Glukhikh
2017-04-13 18:45:49 +03:00
parent 0f6b9473e9
commit 815a367978
4 changed files with 33 additions and 2 deletions
@@ -0,0 +1,14 @@
fun sideEffect() {
println("qq")
}
fun effect(): String {
sideEffect()
return "effect"
}
fun callManySimple() {
effect()
effect()
println(effect())
}