Checking for conflicting substitutors in completion after "by"

This commit is contained in:
Valentin Kipyatkov
2016-03-31 22:21:29 +03:00
parent e05d6a7056
commit 24764ed865
6 changed files with 55 additions and 8 deletions
@@ -0,0 +1,11 @@
import kotlin.reflect.KProperty
class X<T> {
operator fun getValue(thisRef: T, property: KProperty<*>): T = throw Exception()
}
class C<T> {
val property: Int by <caret>
}
// ABSENT: X
@@ -0,0 +1,11 @@
import kotlin.reflect.KProperty
class X<T>(t: T) {
operator fun getValue(thisRef: T, property: KProperty<*>): T = throw Exception()
}
class C<T> {
val property: C<T> by <caret>
}
// EXIST: { itemText: "X", tailText: "(t: C<T>) (<root>)" }