Completion after "by" for top-level properties
This commit is contained in:
@@ -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
|
||||
+6
@@ -1540,6 +1540,12 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("TopLevelVal.kt")
|
||||
public void testTopLevelVal() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smart/propertyDelegate/TopLevelVal.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("ValInClass.kt")
|
||||
public void testValInClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smart/propertyDelegate/ValInClass.kt");
|
||||
|
||||
Reference in New Issue
Block a user