[FIR] Don't generate synthetic declarations from java records from binary dependencies

^KT-56548 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-02-20 12:56:36 +02:00
committed by Space Team
parent 244dbb37cf
commit f836d16dc6
4 changed files with 37 additions and 1 deletions
@@ -0,0 +1,21 @@
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-56548
// MODULE: m1
// FILE: SomeWrapper.java
public final class SomeWrapper {
public record SomeRecord(String a, String b) {}
}
// MODULE: m2(m1)
// FILE: test.kt
import SomeWrapper.SomeRecord
fun testBinary(s: String): String {
val record = SomeRecord(s, "K")
return record.a + record.b
}
fun box(): String {
return testBinary("O")
}