Completion after "by" for top-level properties

This commit is contained in:
Valentin Kipyatkov
2016-03-31 22:31:02 +03:00
parent fe9d6aca9a
commit e18fb20d5a
3 changed files with 24 additions and 1 deletions
@@ -0,0 +1,16 @@
import kotlin.reflect.KProperty
class X
class Y
class Z
operator fun X.getValue(thisRef: Nothing?, property: KProperty<*>): String = ""
operator fun Y.getValue(thisRef: Any?, property: KProperty<*>): String = ""
operator fun Z.getValue(thisRef: Any, property: KProperty<*>): String = ""
val property by <caret>
// EXIST: lazy
// EXIST: X
// EXIST: Y
// ABSENT: Z