package test abstract class A(val param: R) { abstract fun getO() : R abstract fun getK() : R } inline fun doWork(job: ()-> R) : R { return job() }