[IR] dumpKotlinLike: add testdata for FIR tests
This commit is contained in:
committed by
teamcityserver
parent
d7bd4240e1
commit
c68040753d
+23
@@ -0,0 +1,23 @@
|
||||
val <T : CharSequence> T.gk: Function0<T>
|
||||
get(): Function0<T> {
|
||||
return local fun <anonymous>(): T {
|
||||
return <this>
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun testGeneric1(x: String): T {
|
||||
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(): T {
|
||||
return 7.<get-kt26531Val><Int>().invoke()
|
||||
}
|
||||
Reference in New Issue
Block a user