Additional loadJava/loadKotlin tests for nested classes
#KT-1174 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
public class NestedClass {
|
||||||
|
public static class Nested {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public open class NestedClass() : java.lang.Object() {
|
||||||
|
public open class Nested() : java.lang.Object()
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public open class NestedClass : java.lang.Object {
|
||||||
|
public constructor NestedClass()
|
||||||
|
|
||||||
|
public open class Nested : java.lang.Object {
|
||||||
|
public constructor Nested()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
class Outer {
|
||||||
|
inner class Inner<T>
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
internal final class Outer {
|
||||||
|
/*primary*/ public constructor Outer()
|
||||||
|
|
||||||
|
internal final inner class Inner</*0*/ T> {
|
||||||
|
/*primary*/ public constructor Inner</*0*/ T>()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
class Outer() {
|
||||||
|
open class Nested1()
|
||||||
|
|
||||||
|
class Nested2() : Nested1()
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
internal final class Outer {
|
||||||
|
/*primary*/ public constructor Outer()
|
||||||
|
|
||||||
|
internal open class Nested1 {
|
||||||
|
/*primary*/ public constructor Nested1()
|
||||||
|
}
|
||||||
|
|
||||||
|
internal final class Nested2 : test.Outer.Nested1 {
|
||||||
|
/*primary*/ public constructor Nested2()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
class Outer {
|
||||||
|
class Nested<T>
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
internal final class Outer {
|
||||||
|
/*primary*/ public constructor Outer()
|
||||||
|
|
||||||
|
internal final class Nested</*0*/ T> {
|
||||||
|
/*primary*/ public constructor Nested</*0*/ T>()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -135,6 +135,11 @@ public class LoadCompiledKotlinTestGenerated extends AbstractLoadCompiledKotlinT
|
|||||||
doTest("compiler/testData/loadKotlin/class/InnerClassExtendInnerClass.kt");
|
doTest("compiler/testData/loadKotlin/class/InnerClassExtendInnerClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("InnerGenericClass.kt")
|
||||||
|
public void testInnerGenericClass() throws Exception {
|
||||||
|
doTest("compiler/testData/loadKotlin/class/InnerGenericClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("NamedObject.kt")
|
@TestMetadata("NamedObject.kt")
|
||||||
public void testNamedObject() throws Exception {
|
public void testNamedObject() throws Exception {
|
||||||
doTest("compiler/testData/loadKotlin/class/NamedObject.kt");
|
doTest("compiler/testData/loadKotlin/class/NamedObject.kt");
|
||||||
@@ -160,6 +165,16 @@ public class LoadCompiledKotlinTestGenerated extends AbstractLoadCompiledKotlinT
|
|||||||
doTest("compiler/testData/loadKotlin/class/NestedClass.kt");
|
doTest("compiler/testData/loadKotlin/class/NestedClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("NestedClassExtendNestedClass.kt")
|
||||||
|
public void testNestedClassExtendNestedClass() throws Exception {
|
||||||
|
doTest("compiler/testData/loadKotlin/class/NestedClassExtendNestedClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("NestedGenericClass.kt")
|
||||||
|
public void testNestedGenericClass() throws Exception {
|
||||||
|
doTest("compiler/testData/loadKotlin/class/NestedGenericClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("Trait.kt")
|
@TestMetadata("Trait.kt")
|
||||||
public void testTrait() throws Exception {
|
public void testTrait() throws Exception {
|
||||||
doTest("compiler/testData/loadKotlin/class/Trait.kt");
|
doTest("compiler/testData/loadKotlin/class/Trait.kt");
|
||||||
|
|||||||
@@ -139,6 +139,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
|||||||
doTest("compiler/testData/loadJava/MyException.java");
|
doTest("compiler/testData/loadJava/MyException.java");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("NestedClass.java")
|
||||||
|
public void testNestedClass() throws Exception {
|
||||||
|
doTest("compiler/testData/loadJava/NestedClass.java");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("RemoveRedundantProjectionKind.java")
|
@TestMetadata("RemoveRedundantProjectionKind.java")
|
||||||
public void testRemoveRedundantProjectionKind() throws Exception {
|
public void testRemoveRedundantProjectionKind() throws Exception {
|
||||||
doTest("compiler/testData/loadJava/RemoveRedundantProjectionKind.java");
|
doTest("compiler/testData/loadJava/RemoveRedundantProjectionKind.java");
|
||||||
|
|||||||
+20
@@ -137,6 +137,11 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
|||||||
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/class/InnerClassExtendInnerClass.kt");
|
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/class/InnerClassExtendInnerClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("InnerGenericClass.kt")
|
||||||
|
public void testInnerGenericClass() throws Exception {
|
||||||
|
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/class/InnerGenericClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("NamedObject.kt")
|
@TestMetadata("NamedObject.kt")
|
||||||
public void testNamedObject() throws Exception {
|
public void testNamedObject() throws Exception {
|
||||||
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/class/NamedObject.kt");
|
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/class/NamedObject.kt");
|
||||||
@@ -162,6 +167,16 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
|||||||
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/class/NestedClass.kt");
|
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/class/NestedClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("NestedClassExtendNestedClass.kt")
|
||||||
|
public void testNestedClassExtendNestedClass() throws Exception {
|
||||||
|
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/class/NestedClassExtendNestedClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("NestedGenericClass.kt")
|
||||||
|
public void testNestedGenericClass() throws Exception {
|
||||||
|
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/class/NestedGenericClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("Trait.kt")
|
@TestMetadata("Trait.kt")
|
||||||
public void testTrait() throws Exception {
|
public void testTrait() throws Exception {
|
||||||
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/class/Trait.kt");
|
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/class/Trait.kt");
|
||||||
@@ -1059,6 +1074,11 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
|||||||
doTestNotCheckingPrimaryConstructors("compiler/testData/loadJava/MyException.kt");
|
doTestNotCheckingPrimaryConstructors("compiler/testData/loadJava/MyException.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("NestedClass.kt")
|
||||||
|
public void testNestedClass() throws Exception {
|
||||||
|
doTestNotCheckingPrimaryConstructors("compiler/testData/loadJava/NestedClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("RemoveRedundantProjectionKind.kt")
|
@TestMetadata("RemoveRedundantProjectionKind.kt")
|
||||||
public void testRemoveRedundantProjectionKind() throws Exception {
|
public void testRemoveRedundantProjectionKind() throws Exception {
|
||||||
doTestNotCheckingPrimaryConstructors("compiler/testData/loadJava/RemoveRedundantProjectionKind.kt");
|
doTestNotCheckingPrimaryConstructors("compiler/testData/loadJava/RemoveRedundantProjectionKind.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user