Files
kotlin-fork/compiler/testData/codegen/boxInline/signature/recursion.kt
T
Ilya Matveev a5e4e0284e Mute some box tests for native backend
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.
2017-03-10 19:59:37 +03:00

30 lines
370 B
Kotlin
Vendored

// IGNORE_BACKEND: NATIVE
// FILE: 1.kt
// WITH_REFLECT
package test
inline fun stub() {
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
import java.util.*
class I<A>(val s: A)
class A<T : Any>(val elements: List<I<T>>) {
val p = elements.sortedBy { it.hashCode() }
}
fun box(): String {
A(listOf(I("1"), I("2"), I("3"))).p
return "OK"
}