Files
kotlin-fork/compiler/testData/ir/irText/declarations/kt29833.kt
T
Ivan Kochurkin 498f2e534a [FIR] Don't enhance Int and String Java final static fields
It's effectively a breaking change (^KT-62558)

K2 assigns flexible type to all static fields (from Java) and, for example,
`String? becomes String unlike K1. It affects IR signature generating.
That's why signature dump is disabled for some tests.

^KT-57811 Fixed
^KT-61786 Fixed
2023-10-16 17:16:56 +00:00

20 lines
375 B
Kotlin
Vendored

// SKIP_SIGNATURE_DUMP
// TARGET_BACKEND: JVM
// FILE: Definitions.kt
// IR_FILE: kt29833.txt
package interop
object Definitions {
const val KT_CONSTANT = Interface.CONSTANT
val ktValue = Interface.CONSTANT
}
// FILE: interop/Interface.java
package interop;
class Interface {
public static final String CONSTANT = "constant";
public CharSequence chars;
}