79c300209e
When we check Java field for constant initializer, we could be asked to get and check the type of Kotlin's property that is used in this Java field. But there is no guarantee that the type resolve phase was finished and this type is available. So we just check for `const` modifier and skip type check. #KT-63752 Fixed #KT-62558 Obsolete #KT-61786 Declined
20 lines
269 B
Kotlin
Vendored
20 lines
269 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 {
|
|
val FOO = Baz.BAZ + 1
|
|
}
|
|
}
|
|
|
|
class Baz {
|
|
companion object {
|
|
val BAZ = Bar.BAR + 1
|
|
}
|
|
} |