ReadKotlinBinaryClassTest: fix constructor with type parameter
class ClassWithConstructorAndTypeParameter<P>()
This commit is contained in:
@@ -446,8 +446,9 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (CodegenUtil.requireTypeInfoConstructorArg(descriptor.getDefaultType())) {
|
if (CodegenUtil.requireTypeInfoConstructorArg(descriptor.getDefaultType())) {
|
||||||
// TODO
|
AnnotationVisitor jetTypeParameterAnnotation =
|
||||||
i++;
|
mv.visitParameterAnnotation(i++, JvmStdlibNames.JET_TYPE_PARAMETER.getDescriptor(), true);
|
||||||
|
jetTypeParameterAnnotation.visitEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ValueParameterDescriptor valueParameter : constructorDescriptor.getValueParameters()) {
|
for (ValueParameterDescriptor valueParameter : constructorDescriptor.getValueParameters()) {
|
||||||
|
|||||||
+3
@@ -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
|
* @return name of parameter
|
||||||
*/
|
*/
|
||||||
String name();
|
String name() default "";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user