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.
42 lines
2.6 KiB
Plaintext
Vendored
42 lines
2.6 KiB
Plaintext
Vendored
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:3:1: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA;)I):
|
|
fun `access$getFoo$p`(`$this`: A): Int defined in A
|
|
fun `access$getFoo$p`(a: A): Int defined in A
|
|
class A {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:3:1: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA;I)V):
|
|
fun `access$setFoo$p`(`$this`: A, `<set-?>`: Int): Unit defined in A
|
|
fun `access$setFoo$p`(a: A, d: Int): Unit defined in A
|
|
class A {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:3:1: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$cp()I):
|
|
fun `access$getFoo$cp`(): Int defined in A
|
|
fun `access$getFoo$cp`(): Int defined in A
|
|
class A {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:3:1: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$cp(I)V):
|
|
fun `access$setFoo$cp`(`<set-?>`: Int): Unit defined in A
|
|
fun `access$setFoo$cp`(d: Int): Unit defined in A
|
|
class A {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:6:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA;)I):
|
|
fun `access$getFoo$p`(`$this`: A): Int defined in A
|
|
fun `access$getFoo$p`(a: A): Int defined in A
|
|
fun `access$getFoo$p`(a: A): Int = 1
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:7:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA;I)V):
|
|
fun `access$setFoo$p`(`$this`: A, `<set-?>`: Int): Unit defined in A
|
|
fun `access$setFoo$p`(a: A, d: Int): Unit defined in A
|
|
fun `access$setFoo$p`(a: A, d: Int) {}
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:10:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$cp()I):
|
|
fun `access$getFoo$cp`(): Int defined in A
|
|
fun `access$getFoo$cp`(): Int defined in A
|
|
fun `access$getFoo$cp`(): Int = 1
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:11:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$cp(I)V):
|
|
fun `access$setFoo$cp`(`<set-?>`: Int): Unit defined in A
|
|
fun `access$setFoo$cp`(d: Int): Unit defined in A
|
|
fun `access$setFoo$cp`(d: Int) {}
|
|
^
|
|
COMPILATION_ERROR
|