Fix expect declarations available in completion in platform modules

This commit is contained in:
Pavel V. Talanov
2018-03-28 18:06:19 +02:00
parent 549bebbd19
commit c3d2334eed
14 changed files with 136 additions and 2 deletions
@@ -0,0 +1,11 @@
package test
expect class Foo
fun use() {
Foo<caret>
}
// ABSENT: { lookupString: Foo, module: testModule_JVM }
// ABSENT: { lookupString: Foo, module: testModule_JS }
// EXIST: { lookupString: Foo, module: testModule_Common }
@@ -0,0 +1,3 @@
package test
actual class Foo
@@ -0,0 +1,3 @@
package test
actual class Foo
@@ -0,0 +1,4 @@
package test
expect class FooCl
expect object FooObj
@@ -0,0 +1,13 @@
package test
actual class FooCl
actual object FooObj
fun use() {
Fo<caret>
}
// EXIST: { lookupString: FooCl, module: testModule_JS }
// EXIST: { lookupString: FooObj, module: testModule_JS }
// ABSENT: { lookupString: FooCl, module: testModule_Common }
// ABSENT: { lookupString: FooObj, module: testModule_Common }
@@ -0,0 +1,11 @@
package test
expect fun foo()
fun use() {
foo<caret>
}
// ABSENT: { lookupString: foo, module: testModule_JVM }
// ABSENT: { lookupString: foo, module: testModule_JS }
// EXIST: { lookupString: foo, module: testModule_Common }
@@ -0,0 +1,3 @@
package test
actual fun foo() {}
@@ -0,0 +1,3 @@
package test
actual fun foo() {}
@@ -0,0 +1,3 @@
package test
expect fun foo()
@@ -0,0 +1,12 @@
package test
actual fun foo() {
}
fun use() {
foo<caret>
}
// EXIST: { lookupString: foo, module: testModule_JVM }
// ABSENT: { lookupString: foo, module: testModule_Common }