properly read constructor with default params from bytecode
This commit is contained in:
@@ -312,7 +312,7 @@ public class FunctionCodegen {
|
||||
jvmSignature = new Method(jvmSignature.getName(), correctedDescr);
|
||||
}
|
||||
|
||||
int flags = ACC_PUBLIC; // TODO.
|
||||
int flags = ACC_PUBLIC | ACC_SYNTHETIC; // TODO.
|
||||
|
||||
String ownerInternalName = contextClass instanceof NamespaceDescriptor ?
|
||||
NamespaceCodegen.getJVMClassName(DescriptorUtils.getFQName(contextClass), true) :
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
class ClassWithConstructorWithValueParamWithDefaultValue(p: Int = 1)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
namespace test
|
||||
|
||||
final class test.ClassWithConstructorWithValueParamWithDefaultValue : jet.Any {
|
||||
final /*constructor*/ fun <init>(/*0*/ p: jet.Int = ?): test.ClassWithConstructorWithValueParamWithDefaultValue
|
||||
}
|
||||
Reference in New Issue
Block a user