One more test

This commit is contained in:
Valentin Kipyatkov
2017-09-19 16:50:57 +03:00
parent 69f74b2a51
commit 28e2683146
4 changed files with 22 additions and 0 deletions
@@ -0,0 +1,5 @@
package dependency
object AnObject
val Foo.extProp: () -> Unit get() = {}
+5
View File
@@ -0,0 +1,5 @@
import dependency.extProp
fun foo() {
<selection>dependency.AnObject.extProp()</selection>
}
@@ -0,0 +1,6 @@
import dependency.AnObject
import dependency.extProp
fun foo() {
AnObject.extProp()
}
@@ -71,6 +71,12 @@ public class ShortenRefsTestGenerated extends AbstractShortenRefsTest {
doTest(fileName);
}
@TestMetadata("extensionForObject2.kt")
public void testExtensionForObject2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/shortenRefs/extensionForObject2.kt");
doTest(fileName);
}
@TestMetadata("extensionFunctionVarInvokedWithQualifier.kt")
public void testExtensionFunctionVarInvokedWithQualifier() throws Exception {
runTest("idea/testData/shortenRefs/extensionFunctionVarInvokedWithQualifier.kt");