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
21 lines
282 B
Kotlin
Vendored
21 lines
282 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// FILE: Bar.java
|
|
|
|
public class Bar {
|
|
public static final int BAR = Foo.FOO + 1;
|
|
}
|
|
|
|
// FILE: Test.kt
|
|
|
|
class Foo {
|
|
companion object {
|
|
const val FOO = Baz.BAZ + 1
|
|
}
|
|
}
|
|
|
|
class Baz {
|
|
companion object {
|
|
const val BAZ = Bar.BAR + 1
|
|
}
|
|
}
|