Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/vararg.kt
T

12 lines
203 B
Kotlin
Vendored

import kotlin.reflect.KProperty
class Delegate {
fun getValue(t: Any?, vararg p: KProperty<*>): Int = 1
}
val prop: Int by Delegate()
fun box(): String {
return if(prop == 1) "OK" else "fail"
}