17 lines
288 B
Kotlin
Vendored
17 lines
288 B
Kotlin
Vendored
/*
|
|
* Copy of JVM-backend test
|
|
* Found at: compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.2.kt
|
|
*/
|
|
|
|
package test
|
|
|
|
abstract class A<R> {
|
|
abstract fun getO() : R
|
|
|
|
abstract fun getK() : R
|
|
}
|
|
|
|
|
|
inline fun <R> doWork(job: ()-> R) : R {
|
|
return job()
|
|
} |