Flatten nested string concatenation expressions into a single IrStringConcatenation, in a separate lowering phase.

Consolidating these into IrStringConcatenations allows the backend to produce efficient code for string concatenations (e.g., using StringBuilder for JVM).
This commit is contained in:
Mark Punzalan
2019-02-22 11:31:24 -08:00
committed by max-kammerer
parent ae22bdee15
commit d4d5a6011c
8 changed files with 212 additions and 14 deletions

View File

@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun test(b: Byte, s: Short, i: Int, l: Long) {
"$b"
"$s"