Files
kotlin-fork/compiler/testData/codegen/boxModernJdk/testsWithJava9/concatDynamic.kt
T
Dmitriy Novozhilov 1fa74ef939 [Test] Move test on modern jdk to separate test runners
This is needed to avoid problems with installation of proper jdk
  on developer machines. Those tests will be moved back to main box
  suites after migrating our tests on LTS versions of jdk (11 and 17
  instead of 9 and 15)
2021-08-01 22:23:43 +03:00

10 lines
293 B
Kotlin
Vendored

// STRING_CONCAT: indy-with-constants
fun box(): String {
val p = 3147483648u
val a = "_"
val b = "_"
val s = a + "1" + "2" + 3 + 4L + b + 5.0 + 6F + '7' + true + false + 3147483647u + p
return if (s != "_1234_5.06.07truefalse31474836473147483648") "fail $s" else "OK"
}