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.
29 lines
639 B
Kotlin
Vendored
29 lines
639 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
// FILE: Child.java
|
|
|
|
class Child extends Parent {
|
|
public static int b = 3;
|
|
public static int c = 4;
|
|
}
|
|
|
|
// FILE: Parent.java
|
|
|
|
class Parent {
|
|
public static int a = 1;
|
|
public static int b = 2;
|
|
}
|
|
|
|
// FILE: test.kt
|
|
|
|
fun box(): String {
|
|
if (Parent.a != 1) return "expected Parent.a == 1"
|
|
if (Parent.b != 2) return "expected Parent.b == 2"
|
|
if (Child.a != 1) return "expected Child.a == 1"
|
|
if (Child.b != 3) return "expected Child.b == 3"
|
|
if (Child.c != 4) return "expected Child.c == 4"
|
|
|
|
return "OK"
|
|
}
|