Added test with class referencing self in upper bound.

This commit is contained in:
Evgeny Gerashchenko
2013-03-05 13:31:25 +04:00
parent 578503c4cd
commit 20fa0a3cd1
5 changed files with 23 additions and 0 deletions
@@ -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");
@@ -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");