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

View File

@@ -0,0 +1,4 @@
package test;
public final class ClassWithTypePRefSelfAndClass<P extends ClassWithTypePRefSelfAndClass<P>> {
}

View File

@@ -0,0 +1,4 @@
package test
public class ClassWithTypePRefSelfAndClass<P: ClassWithTypePRefSelfAndClass<P>?>(): Object() {
}

View File

@@ -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>
}