Tests: add complex tests for references to libraries
These tests check that that complex references (var p by delegate, for in collection, array[index]) are resolved correctly when target descriptors have type parameters
See 41f9dcba91
#KT-4505 Fixed
This commit is contained in:
@@ -36,6 +36,11 @@ public class ReferenceResolveWithLibTestGenerated extends AbstractReferenceResol
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("idea/testData/resolve/referenceWithLib"), Pattern.compile("^(.+)\\.kt$"), false);
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedPropertyWithTypeParameters.kt")
|
||||
public void testDelegatedPropertyWithTypeParameters() throws Exception {
|
||||
doTest("idea/testData/resolve/referenceWithLib/delegatedPropertyWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fakeOverride.kt")
|
||||
public void testFakeOverride() throws Exception {
|
||||
doTest("idea/testData/resolve/referenceWithLib/fakeOverride.kt");
|
||||
@@ -46,9 +51,19 @@ public class ReferenceResolveWithLibTestGenerated extends AbstractReferenceResol
|
||||
doTest("idea/testData/resolve/referenceWithLib/fakeOverride2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("iteratorWithTypeParameter.kt")
|
||||
public void testIteratorWithTypeParameter() throws Exception {
|
||||
doTest("idea/testData/resolve/referenceWithLib/iteratorWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sameNameInLib.kt")
|
||||
public void testSameNameInLib() throws Exception {
|
||||
doTest("idea/testData/resolve/referenceWithLib/sameNameInLib.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("setWithTypeParameters.kt")
|
||||
public void testSetWithTypeParameters() throws Exception {
|
||||
doTest("idea/testData/resolve/referenceWithLib/setWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user