Test for resolving references from package which is declared both in binaries and sources

This commit is contained in:
Nikolay Krasko
2014-02-05 18:35:18 +04:00
parent a7eb143cff
commit 3ceed45c09
3 changed files with 18 additions and 0 deletions
@@ -0,0 +1,7 @@
package test
class B
val a: <caret>B? = null
// REF: (test).B
@@ -0,0 +1,6 @@
package test
class Foo
fun bar() = 12
@@ -56,6 +56,11 @@ public class ReferenceResolveWithLibTestGenerated extends AbstractReferenceResol
doTest("idea/testData/resolve/referenceWithLib/iteratorWithTypeParameter.kt");
}
@TestMetadata("packageOfLibDeclaration.kt")
public void testPackageOfLibDeclaration() throws Exception {
doTest("idea/testData/resolve/referenceWithLib/packageOfLibDeclaration.kt");
}
@TestMetadata("sameNameInLib.kt")
public void testSameNameInLib() throws Exception {
doTest("idea/testData/resolve/referenceWithLib/sameNameInLib.kt");