ReadKotlinBinaryClassTest: fix constructor with type parameter

class ClassWithConstructorAndTypeParameter<P>()
This commit is contained in:
Stepan Koltsov
2012-01-23 20:19:37 +04:00
parent 45cc0cd99e
commit 4b7f3f718e
4 changed files with 10 additions and 3 deletions
@@ -446,8 +446,9 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
}
if (CodegenUtil.requireTypeInfoConstructorArg(descriptor.getDefaultType())) {
// TODO
i++;
AnnotationVisitor jetTypeParameterAnnotation =
mv.visitParameterAnnotation(i++, JvmStdlibNames.JET_TYPE_PARAMETER.getDescriptor(), true);
jetTypeParameterAnnotation.visitEnd();
}
for (ValueParameterDescriptor valueParameter : constructorDescriptor.getValueParameters()) {
@@ -0,0 +1,3 @@
package test
class ClassWithConstructorAndTypeParameter<P, Q>()
@@ -0,0 +1,3 @@
package test
class ClassWithConstructorAndTypeParameter<P>()
@@ -18,5 +18,5 @@ public @interface JetTypeParameter {
/**
* @return name of parameter
*/
String name();
String name() default "";
}