Fix inline class tests

Use original descriptor when determining if a synthetic accessor should
be used for a possibly hidden ("mangled") constructor call.
This commit is contained in:
Dmitry Petrov
2018-09-10 15:21:27 +03:00
parent 6206f1e419
commit eb940ec58d
@@ -2261,7 +2261,7 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
// $default method is not private, so you need no accessor to call it
return descriptor;
}
else if (InlineClassManglingUtilsKt.shouldHideConstructorDueToInlineClassTypeValueParameters(descriptor)) {
else if (InlineClassManglingUtilsKt.shouldHideConstructorDueToInlineClassTypeValueParameters(descriptor.getOriginal())) {
// Constructors with inline class type value parameters should always be called using an accessor.
// NB this will require accessors even if the constructor itself is in a different module.
return new AccessorForConstructorDescriptor(