Added test for generic operator
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
operator fun <T> List<T>.getValue(thisRef: T, property: KProperty<*>): Int = indexOf(thisRef)
|
||||
|
||||
class C {
|
||||
val property by <caret>
|
||||
}
|
||||
|
||||
// EXIST: lazy
|
||||
// EXIST: listOf
|
||||
Reference in New Issue
Block a user