LR: Class object of an enum class doesn't carry type parameters

This commit is contained in:
Andrey Breslav
2012-07-19 17:22:10 +04:00
parent dc95638741
commit 8c1fd5e9c7
2 changed files with 18 additions and 0 deletions
@@ -405,6 +405,12 @@ public class LazyClassDescriptor extends ClassDescriptorBase implements ClassDes
public List<? extends JetParameter> getPrimaryConstructorParameters() {
return Collections.emptyList();
}
@NotNull
@Override
public List<JetTypeParameter> getTypeParameters() {
return Collections.emptyList();
}
};
}
@@ -0,0 +1,12 @@
namespace <root>
internal final enum class List</*0*/ out T : jet.Any?> : jet.Any {
public final /*constructor*/ fun </*0*/ out T : jet.Any?><init>(/*0*/ size: jet.Int): List<T>
internal final val size: jet.Int
internal final class object List.<class-object-for-List> {
internal final /*constructor*/ fun <init>(): List.<class-object-for-List>
internal final val Nil: List.<class-object-for-List>.Nil
}
}
internal final val foo: List.<class-object-for-List>.Nil
internal final val foo1: jet.Int