mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
This patch mutes the following test categories:
* Tests with java dependencies (System class,
java stdlib, jvm-oriented annotations etc).
* Coroutines tests.
* Reflection tests.
* Tests with an inheritance from the standard
collections.
24 lines
568 B
Kotlin
Vendored
24 lines
568 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
// WITH_RUNTIME
|
|
|
|
interface KInt {
|
|
|
|
companion object {
|
|
const val a = "a"
|
|
const val b = "b$a"
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
val a = KInt::class.java.getField("a").get(null)
|
|
val b = KInt::class.java.getField("b").get(null)
|
|
|
|
if (a !== KInt.a) return "fail 1: KInt.a !== KInt.Companion.a"
|
|
if (b !== KInt.b) return "fail 2: KInt.b !== KInt.Companion.b"
|
|
if (b !== "ba") return "fail 2: 'ba' !== KInt.Companion.b"
|
|
|
|
return "OK"
|
|
}
|