Inherited visibility resolution fixed

This commit is contained in:
Andrey Breslav
2012-06-25 13:20:36 +02:00
parent 150b54a615
commit 6632c6abfc
6 changed files with 51 additions and 24 deletions
@@ -73,6 +73,11 @@ public class LazyResolveDescriptorRendererTestGenerated {
doTest("compiler/testData/renderer/TupleTypes.kt");
}
@Test
public void testInheritedMembersVisibility() throws Exception {
doTest("compiler/testData/renderer/InheritedMembersVisibility.kt");
}
public static void allTestsPresent(Class<?> clazz, File testDataDir, boolean recursive) {
Set<String> methodNames = new HashSet<String>();
for (Method method : clazz.getDeclaredMethods()) {
@@ -541,14 +541,12 @@ public class LazyResolveNamespaceComparingTestGenerated {
@Test
public void testOverrideClassVal() throws Exception {
//TODO Disabled until lazy resolve supports inherited visibility (KT-2285)
//doTestSinglePackage("compiler/testData/readKotlinBinaryClass/prop/OverrideClassVal.kt");
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/prop/OverrideClassVal.kt");
}
@Test
public void testOverrideTraitVal() throws Exception {
//TODO Disabled until lazy resolve supports inherited visibility (KT-2285)
//doTestSinglePackage("compiler/testData/readKotlinBinaryClass/prop/OverrideTraitVal.kt");
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/prop/OverrideTraitVal.kt");
}
@Test
@@ -698,8 +696,7 @@ public class LazyResolveNamespaceComparingTestGenerated {
@Test
public void testInternalAbstractTraitMembersOverridden() throws Exception {
//TODO Disabled until lazy resolve supports inherited visibility (KT-2285)
//doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalAbstractTraitMembersOverridden.kt");
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalAbstractTraitMembersOverridden.kt");
}
@Test
@@ -858,8 +855,7 @@ public class LazyResolveNamespaceComparingTestGenerated {
@Test
public void testInnerClassesInGeneric() throws Exception {
//TODO Disabled until lazy resolve supports inherited visibility (KT-2285)
//doTestSinglePackage("compiler/testData/readJavaBinaryClass/InnerClassesInGeneric.kt");
doTestSinglePackage("compiler/testData/readJavaBinaryClass/InnerClassesInGeneric.kt");
}
@Test
@@ -1038,8 +1034,7 @@ public class LazyResolveNamespaceComparingTestGenerated {
@Test
public void testSimpleClass() throws Exception {
//TODO Disabled until lazy resolve supports inherited visibility (KT-2285)
//doTest("compiler/testData/lazyResolve/simpleClass.kt");
doTest("compiler/testData/lazyResolve/simpleClass.kt");
}
public static void allTestsPresent(Class<?> clazz, File testDataDir, boolean recursive) {