Bump d8 used in box tests to 2.1.75
This commit is contained in:
committed by
TeamCityServer
parent
737fbe271f
commit
0cca07fa19
@@ -1,8 +1,10 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: ANDROID
|
||||
// ^ D8 merges method references with empty closure created by 'invokedynamic'
|
||||
// FILE: test.kt
|
||||
|
||||
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
|
||||
@@ -15,15 +17,15 @@ fun adapted2(vararg s: String): String = s[0]
|
||||
|
||||
fun box(): String {
|
||||
// Since 1.0, SAM wrappers for Java do not implement equals/hashCode
|
||||
checkNotEqual(id(::target1), id(::target1))
|
||||
checkNotEqual(id(::target1), target1FromOtherFile())
|
||||
checkNotEqual(id(::target1), id(::target2))
|
||||
checkNotEqual("id(::target1), id(::target1)", id(::target1), id(::target1))
|
||||
checkNotEqual("id(::target1), target1FromOtherFile()", id(::target1), target1FromOtherFile())
|
||||
checkNotEqual("id(::target1), id(::target2)", id(::target1), id(::target2))
|
||||
|
||||
checkNotEqual(id(::adapted1), id(::adapted1))
|
||||
checkNotEqual(id(::adapted1), adapted1FromOtherFile())
|
||||
checkNotEqual(id(::adapted2), id(::adapted2))
|
||||
checkNotEqual(id(::adapted2), adapted2FromOtherFile())
|
||||
checkNotEqual(id(::adapted1), id(::adapted2))
|
||||
checkNotEqual("id(::adapted1), id(::adapted1)", id(::adapted1), id(::adapted1))
|
||||
checkNotEqual("id(::adapted1), adapted1FromOtherFile()", id(::adapted1), adapted1FromOtherFile())
|
||||
checkNotEqual("id(::adapted2), id(::adapted2)", id(::adapted2), id(::adapted2))
|
||||
checkNotEqual("id(::adapted2), adapted2FromOtherFile()", id(::adapted2), adapted2FromOtherFile())
|
||||
checkNotEqual("id(::adapted1), id(::adapted2)", id(::adapted1), id(::adapted2))
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user