Use more correct check for the constructor symbol
- add test for extension function receiver
This commit is contained in:
committed by
Ilya Kirillov
parent
a3da1ea1a0
commit
e7f5594ffe
+14
@@ -0,0 +1,14 @@
|
||||
class A {
|
||||
fun aaa() {}
|
||||
val aa = 10
|
||||
}
|
||||
|
||||
fun A.aaaExt() {}
|
||||
|
||||
fun A.test() {
|
||||
<caret>
|
||||
}
|
||||
|
||||
// EXIST: aaa
|
||||
// EXIST: aa
|
||||
// EXIST: aaaExt
|
||||
+5
@@ -2277,6 +2277,11 @@ public class JSBasicCompletionTestGenerated extends AbstractJSBasicCompletionTes
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverCompletion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReceiverFromExtensionMethod.kt")
|
||||
public void testImplicitReceiverFromExtensionMethod() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverFromExtensionMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localVariablesAndFunctions.kt")
|
||||
public void testLocalVariablesAndFunctions() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctions.kt");
|
||||
|
||||
+5
@@ -2277,6 +2277,11 @@ public class JvmBasicCompletionTestGenerated extends AbstractJvmBasicCompletionT
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverCompletion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReceiverFromExtensionMethod.kt")
|
||||
public void testImplicitReceiverFromExtensionMethod() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverFromExtensionMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localVariablesAndFunctions.kt")
|
||||
public void testLocalVariablesAndFunctions() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctions.kt");
|
||||
|
||||
Reference in New Issue
Block a user