965946d3ef
Do not try to find PSI element, but always use the IR element offsets instead. This greatly simplifies test data because we don't need to have custom PSI- and LT- based diagnostic ranges in every test, and K1/K2 behavior also is mostly the same. The exact offset ranges are not as important for backend diagnostics, so it's better to have K2+PSI and K2+LT behaving the same.
32 lines
2.0 KiB
Plaintext
Vendored
32 lines
2.0 KiB
Plaintext
Vendored
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:14:1: error: accidental override: The following declarations have the same JVM signature (access$foo(LDerived;)V):
|
|
fun `access$foo`(d: Derived): Unit defined in Derived
|
|
fun `access$foo`(`$this`: Derived): Unit defined in Derived
|
|
class Derived : Base() {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:14:1: error: accidental override: The following declarations have the same JVM signature (access$getBar$p(LDerived;)I):
|
|
fun `access$getBar$p`(d: Derived): Int defined in Derived
|
|
fun `access$getBar$p`(`$this`: Derived): Int defined in Derived
|
|
class Derived : Base() {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:14:1: error: accidental override: The following declarations have the same JVM signature (access$setBar$p(LDerived;I)V):
|
|
fun `access$setBar$p`(d: Derived, i: Int): Unit defined in Derived
|
|
fun `access$setBar$p`(`$this`: Derived, `<set-?>`: Int): Unit defined in Derived
|
|
class Derived : Base() {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:14:1: error: accidental override: The following declarations have the same JVM signature (access$getBaz$p(LDerived;)I):
|
|
fun `access$getBaz$p`(d: Derived): Int defined in Derived
|
|
fun `access$getBaz$p`(`$this`: Derived): Int defined in Derived
|
|
class Derived : Base() {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:14:1: error: accidental override: The following declarations have the same JVM signature (access$getBoo$p(LDerived;)I):
|
|
fun `access$getBoo$p`(d: Derived): Int defined in Derived
|
|
fun `access$getBoo$p`(`$this`: Derived): Int defined in Derived
|
|
class Derived : Base() {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:14:1: error: accidental override: The following declarations have the same JVM signature (access$setBar1$p(LDerived;I)V):
|
|
fun `access$setBar1$p`(d: Derived, i: Int): Unit defined in Derived
|
|
fun `access$setBar1$p`(`$this`: Derived, `<set-?>`: Int): Unit defined in Derived
|
|
class Derived : Base() {
|
|
^
|
|
COMPILATION_ERROR
|