Test for reference to nested class in library

This commit is contained in:
Pavel V. Talanov
2014-02-28 17:52:52 +04:00
parent 733da8caec
commit 80bc7b286a
3 changed files with 18 additions and 0 deletions
@@ -0,0 +1,7 @@
package test
import dependency.*
val a: Outer.<caret>Nested? = null
// REF: (dependency.Outer).Nested
@@ -0,0 +1,6 @@
package dependency
class Outer {
class Nested {
}
}
@@ -61,6 +61,11 @@ public class ReferenceResolveWithLibTestGenerated extends AbstractReferenceResol
doTest("idea/testData/resolve/referenceWithLib/iteratorWithTypeParameter.kt");
}
@TestMetadata("nestedClassFromLib.kt")
public void testNestedClassFromLib() throws Exception {
doTest("idea/testData/resolve/referenceWithLib/nestedClassFromLib.kt");
}
@TestMetadata("packageOfLibDeclaration.kt")
public void testPackageOfLibDeclaration() throws Exception {
doTest("idea/testData/resolve/referenceWithLib/packageOfLibDeclaration.kt");