Report JVM signature clashes from JVM_IR

Also:

* Do not rename public ABI fields
This includes backing fields for const, lateinit, @JvmField properties,
and instance fields for objects.

* FAKE_OVERRIDE declarations for static members of parent Java classes
Required to report cases when a Kotlin function accidentally overrides
Java class member.
This commit is contained in:
Dmitry Petrov
2020-02-10 11:27:48 +03:00
parent c1db9b6d40
commit 866f188120
233 changed files with 4487 additions and 44 deletions
@@ -0,0 +1,9 @@
// TARGET_BACKEND: JVM_IR
object O {
val INSTANCE: O = null!!
}
<!CONFLICTING_JVM_DECLARATIONS!>object O2<!> {
<!CONFLICTING_JVM_DECLARATIONS!>lateinit var INSTANCE: O2<!>
}