Added test with class referencing self in upper bound.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
package test;
|
||||
|
||||
public final class ClassWithTypePRefSelfAndClass<P extends ClassWithTypePRefSelfAndClass<P>> {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package test
|
||||
|
||||
public class ClassWithTypePRefSelfAndClass<P: ClassWithTypePRefSelfAndClass<P>?>(): Object() {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
namespace test
|
||||
|
||||
public final class test.ClassWithTypePRefSelfAndClass</*0*/ P : test.ClassWithTypePRefSelfAndClass<P>?> : java.lang.Object {
|
||||
public final /*constructor*/ fun </*0*/ P : test.ClassWithTypePRefSelfAndClass<P>?><init>(): test.ClassWithTypePRefSelfAndClass<P>
|
||||
}
|
||||
@@ -72,6 +72,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
doTest("compiler/testData/loadJava/ClassWithTypePRefSelf.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassWithTypePRefSelfAndClass.java")
|
||||
public void testClassWithTypePRefSelfAndClass() throws Exception {
|
||||
doTest("compiler/testData/loadJava/ClassWithTypePRefSelfAndClass.java");
|
||||
}
|
||||
|
||||
@TestMetadata("FieldAsVar.java")
|
||||
public void testFieldAsVar() throws Exception {
|
||||
doTest("compiler/testData/loadJava/FieldAsVar.java");
|
||||
|
||||
+5
@@ -1041,6 +1041,11 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
doTestNotCheckingPrimaryConstructors("compiler/testData/loadJava/ClassWithTypePRefSelf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassWithTypePRefSelfAndClass.kt")
|
||||
public void testClassWithTypePRefSelfAndClass() throws Exception {
|
||||
doTestNotCheckingPrimaryConstructors("compiler/testData/loadJava/ClassWithTypePRefSelfAndClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FieldAsVar.kt")
|
||||
public void testFieldAsVar() throws Exception {
|
||||
doTestNotCheckingPrimaryConstructors("compiler/testData/loadJava/FieldAsVar.kt");
|
||||
|
||||
Reference in New Issue
Block a user