498f2e534a
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
20 lines
375 B
Kotlin
Vendored
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;
|
|
}
|