Don't treat java constructor as 'hidden' one
Fix KT-54656
This commit is contained in:
committed by
Alexander Udalov
parent
928c6badd1
commit
4d9c2d3d14
+6
@@ -22337,6 +22337,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt54603.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt54656.kt")
|
||||
public void testKt54656() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt54656.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mangledDefaultParameterFunction.kt")
|
||||
public void testMangledDefaultParameterFunction() throws Exception {
|
||||
|
||||
+2
-1
@@ -363,7 +363,8 @@ private class SyntheticAccessorTransformer(
|
||||
|
||||
if (origin == IrDeclarationOrigin.FUNCTION_FOR_DEFAULT_PARAMETER ||
|
||||
origin == JvmLoweredDeclarationOrigin.SYNTHETIC_ACCESSOR ||
|
||||
origin == JvmLoweredDeclarationOrigin.SYNTHETIC_ACCESSOR_FOR_HIDDEN_CONSTRUCTOR
|
||||
origin == JvmLoweredDeclarationOrigin.SYNTHETIC_ACCESSOR_FOR_HIDDEN_CONSTRUCTOR ||
|
||||
origin == IrDeclarationOrigin.IR_EXTERNAL_JAVA_DECLARATION_STUB
|
||||
) {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WITH_STDLIB
|
||||
|
||||
// FILE: J.java
|
||||
public class J {
|
||||
public J(Email email) {}
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
@JvmInline
|
||||
value class Email(val address: String)
|
||||
|
||||
fun box():String {
|
||||
J(Email("test"))
|
||||
return "OK"
|
||||
}
|
||||
|
||||
+6
@@ -22337,6 +22337,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt54603.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt54656.kt")
|
||||
public void testKt54656() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt54656.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mangledDefaultParameterFunction.kt")
|
||||
public void testMangledDefaultParameterFunction() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user