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.
34 lines
635 B
Kotlin
Vendored
34 lines
635 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
// WITH_RUNTIME
|
|
// FILE: 1.kt
|
|
|
|
package thispackage
|
|
|
|
import otherpackage.*
|
|
|
|
fun box(): String {
|
|
if (!localUse()) {
|
|
return "local use failed"
|
|
}
|
|
if (!fromOtherPackage()) {
|
|
return "use from other package failed"
|
|
}
|
|
return "OK"
|
|
}
|
|
|
|
fun localUse(): Boolean {
|
|
val c = Runnable::class.java
|
|
return (c.getName()!! == "java.lang.Runnable")
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
package otherpackage
|
|
|
|
fun fromOtherPackage(): Boolean {
|
|
val c = Runnable::class.java
|
|
return (c.getName()!! == "java.lang.Runnable")
|
|
}
|