+14
@@ -0,0 +1,14 @@
|
|||||||
|
// !LANGUAGE: +NewInference
|
||||||
|
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
|
||||||
|
|
||||||
|
class Delegate<T>
|
||||||
|
|
||||||
|
operator fun <T> Delegate<T>.getValue(thisRef: Any?, property: kotlin.reflect.KProperty<*>): T = TODO()
|
||||||
|
|
||||||
|
fun <K> createDelegate(f: () -> K): Delegate<K> = TODO()
|
||||||
|
|
||||||
|
fun test() {
|
||||||
|
val bar: () -> String by createDelegate {
|
||||||
|
return@createDelegate { "str" }
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user