Add forgotten test file for FIR

After ac69c287ec
This commit is contained in:
Mikhail Zarechenskiy
2020-01-30 16:09:11 +03:00
parent 2f19ad7bdc
commit 4c8905b00f
@@ -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" }
}
}