Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/genericGetter.kt
T

13 lines
213 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.reflect.KProperty
val a: Int by A(1)
class A<T: Any>(i: T) {
operator fun getValue(t: Any?, p: KProperty<*>): T {
throw Exception()
}
}