[IR] add testdata for dumpKotlinLike
This commit is contained in:
committed by
teamcityserver
parent
d2022ab115
commit
8d5facb15f
+24
@@ -0,0 +1,24 @@
|
||||
val <T : CharSequence> T.gk: Function0<T>
|
||||
get(): Function0<T> {
|
||||
return local fun <anonymous>(): T {
|
||||
return <this>
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun testGeneric1(x: String): String {
|
||||
return <get-gk><String>($receiver = x).invoke()
|
||||
}
|
||||
|
||||
val <T : Any?> T.kt26531Val: Function0<T>
|
||||
get(): Function0<T> {
|
||||
return local fun <no name provided>(): T {
|
||||
return <this>
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun kt26531(): Int {
|
||||
return <get-kt26531Val><Int>($receiver = 7).invoke()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user