Files
kotlin-fork/compiler/testData/codegen/boxInline/signature/recursion.1.kt
T
2016-01-13 16:57:36 +03:00

19 lines
261 B
Kotlin
Vendored

//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"
}