Bump d8 used in box tests to 2.1.75

This commit is contained in:
Dmitry Petrov
2021-03-10 11:34:10 +03:00
committed by TeamCityServer
parent 737fbe271f
commit 0cca07fa19
7 changed files with 53 additions and 33 deletions
@@ -1,7 +1,9 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: ANDROID
// ^ D8 merges method references with empty closure created by 'invokedynamic'
fun checkNotEqual(x: Any, y: Any) {
if (x == y || y == x) throw AssertionError("$x and $y should NOT be equal")
fun checkNotEqual(marker: String, x: Any, y: Any) {
if (x == y || y == x) throw AssertionError("$marker: $x and $y should NOT be equal")
}
private fun id(f: Runnable): Any = f
@@ -12,17 +14,17 @@ fun box(): String {
fun local1() {}
fun local2() {}
checkNotEqual(id(::local1), id(::local1))
checkNotEqual(id(::local1), id(::local2))
checkNotEqual("id(::local1), id(::local1)", id(::local1), id(::local1))
checkNotEqual("id(::local1), id(::local2)", id(::local1), id(::local2))
fun String.localExt() {}
checkNotEqual(id("A"::localExt), id("A"::localExt))
checkNotEqual(id("A"::localExt), id("B"::localExt))
checkNotEqual("id(\"A\"::localExt), id(\"A\"::localExt)", id("A"::localExt), id("A"::localExt))
checkNotEqual("id(\"A\"::localExt), id(\"B\"::localExt)", id("A"::localExt), id("B"::localExt))
fun adapted(default: String? = "", vararg va: Int): Int = 0
checkNotEqual(id(::adapted), id(::adapted))
checkNotEqual("id(::adapted), id(::adapted)", id(::adapted), id(::adapted))
return "OK"
}