Files
kotlin-fork/compiler/testData/ir/irText/expressions/variableAsFunctionCallWithGenerics.kt
T
2018-09-10 14:10:05 +03:00

11 lines
216 B
Kotlin
Vendored

// !LANGUAGE: +NewInference
val <T : CharSequence> T.gk: () -> T
get() = { -> this }
fun testGeneric1(x: String) = x.gk()
val <T> T.kt26531Val: () -> T
get() = fun () = this
fun kt26531() = 7.kt26531Val()