Files
kotlin-fork/compiler/testData/ir/irText/expressions/variableAsFunctionCallWithGenerics.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

24 lines
430 B
Kotlin
Vendored

val <T : CharSequence> T.gk: Function0<T>
get(): Function0<T> {
return local fun <anonymous>(): T {
return <this>
}
}
fun testGeneric1(x: String): String {
return x.<get-gk><String>().invoke()
}
val <T : Any?> T.kt26531Val: Function0<T>
get(): Function0<T> {
return local fun <no name provided>(): T {
return <this>
}
}
fun kt26531(): Int {
return 7.<get-kt26531Val><Int>().invoke()
}