[K2] Revert changes done in KT-61786

Changes in this ticket remove type enhancement in java fields
for K2. But after KT-61920 fix, we can actually support it.
This commit is contained in:
Ivan Kylchik
2023-11-21 16:10:47 +01:00
committed by Space Team
parent 2680c8effd
commit 97ba3fe396
17 changed files with 88 additions and 35 deletions
@@ -0,0 +1,21 @@
// IGNORE_REVERSED_RESOLVE
// IGNORE_CONTRACT_VIOLATIONS
// 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 = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>Bar.BAR + 1<!>
}
}
@@ -1,3 +1,5 @@
// IGNORE_REVERSED_RESOLVE
// IGNORE_CONTRACT_VIOLATIONS
// FIR_IDENTICAL
// FILE: Bar.java