Optimize recursive string concatenation

This commit is contained in:
Michael Bogdanov
2016-02-15 16:42:18 +03:00
parent 8835b0599a
commit 0283fea835
3 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
fun box(): String {
val z = 1;
return "O" + "K".toString() + z
}
// 1 LDC "OK"
// 1 LDC