[FIR] Add toString() call to expressions in string templates

This commit is contained in:
Dmitriy Novozhilov
2019-11-19 11:58:19 +03:00
parent 8d9d6fd181
commit 43a8c1282f
20 changed files with 274 additions and 231 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
var a = 'a'
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box() : String {
val b = 1+1
if ("$b" != "2") return "fail"
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun f(s: String?): String {
return "$s"
}
@@ -6,4 +5,4 @@ fun f(s: String?): String {
fun box(): String {
if (f(null) != "null") return "Fail"
return "OK"
}
}