mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 15:54:05 +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
586 B
Kotlin
Vendored
24 lines
586 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.reflect.*
|
|
import kotlin.test.assertEquals
|
|
import kotlin.test.assertTrue
|
|
|
|
class A {
|
|
fun <T, U : Any> foo(p1: String, p2: String?, p3: T, p4: U, p5: U?) { }
|
|
}
|
|
|
|
fun Any?.ext() {}
|
|
|
|
fun box(): String {
|
|
val ps = A::class.declaredFunctions.single().parameters.map { it.type.isMarkedNullable }
|
|
assertEquals(listOf(false, false, true, false, false, true), ps)
|
|
|
|
assertTrue(Any?::ext.parameters.single().type.isMarkedNullable)
|
|
|
|
return "OK"
|
|
}
|