[Test] Use JDK 11 instead of JDK 9 in modern jdk tests

This commit is contained in:
Dmitriy Novozhilov
2021-07-30 18:51:44 +03:00
committed by teamcityserver
parent fd537e7d5a
commit 5206b45ce3
19 changed files with 175 additions and 169 deletions
@@ -0,0 +1,20 @@
// STRING_CONCAT: indy-with-constants
inline fun test(crossinline s: (String) -> String): String {
var result = "1" + s("2") + "3" + 4 + {
"5" + s("6") + "7"
}()
result += object {
fun run() = "8" + s("9") + "10"
}.run()
return result
}
fun box(): String {
val result = test { it }
if (result != "12345678910") return "fail 1: $result"
val result2 = test { it + "_" }
return if (result2 != "12_3456_789_10") "fail 2: $result2" else "OK"
}