Files
kotlin-fork/js/js.translator/testData/expression/stringTemplates/cases/stringValues.kt
T
2014-03-11 20:04:00 +04:00

19 lines
520 B
Kotlin

package foo
// test String template must have one or more entries.
public class Fe {
fun open(method: String, url: String, async: Boolean = true, user: String = "", password: String = "") = "$method $url $async $user $password"
}
fun box(): Boolean {
val a = "abc"
val b = "def"
val message = "a = $a, b = $b"
if (message != "a = abc, b = def") return false
val v1 = null
if ("returns null null" != "returns $v1 ${null}") return false
return Fe().open("22", "33") == "22 33 true "
}