a5e4e0284e
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.
37 lines
872 B
Kotlin
Vendored
37 lines
872 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 String bar() {
|
|
return "Child.bar";
|
|
}
|
|
public static String baz() {
|
|
return "Child.baz";
|
|
}
|
|
}
|
|
|
|
// FILE: Parent.java
|
|
|
|
class Parent {
|
|
public static String foo() {
|
|
return "Parent.foo";
|
|
}
|
|
public static String baz() {
|
|
return "Parent.baz";
|
|
}
|
|
}
|
|
|
|
// FILE: test.kt
|
|
|
|
fun box(): String {
|
|
if (Parent.foo() != "Parent.foo") return "expected: Parent.foo"
|
|
if (Parent.baz() != "Parent.baz") return "expected: Parent.baz"
|
|
if (Child.foo() != "Parent.foo") return "expected: Child.foo() != Parent.foo"
|
|
if (Child.baz() != "Child.baz") return "expected: Child.baz"
|
|
if (Child.bar() != "Child.bar") return "expected: Child.bar"
|
|
|
|
return "OK"
|
|
}
|