mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +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.
34 lines
675 B
Kotlin
Vendored
34 lines
675 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.test.*
|
|
|
|
fun Int.foo(s: String) {}
|
|
|
|
class A {
|
|
fun bar() {}
|
|
}
|
|
|
|
fun baz(name: String) {}
|
|
|
|
fun box(): String {
|
|
assertEquals(
|
|
listOf("extension receiver of ${Int::foo}", "parameter #1 s of ${Int::foo}"),
|
|
Int::foo.parameters.map(Any::toString)
|
|
)
|
|
|
|
assertEquals(
|
|
listOf("instance of ${A::bar}"),
|
|
A::bar.parameters.map(Any::toString)
|
|
)
|
|
|
|
assertEquals(
|
|
listOf("parameter #0 name of ${::baz}"),
|
|
::baz.parameters.map(Any::toString)
|
|
)
|
|
|
|
return "OK"
|
|
}
|