blob: aeb0d4a67d0043c70d1667f1103cf7ac89b0bcbd [file] [log] [blame]
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()
}