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.0 KiB
Plaintext
Vendored
42 lines
2.0 KiB
Plaintext
Vendored
compiler/testData/cli/jvm/signatureClash.kt:6:5: error: accidental override: The following declarations have the same JVM signature (getX()I):
|
|
fun `<get-x>`(): Int defined in A
|
|
fun getX(): Int defined in A
|
|
fun getX() = 1
|
|
^
|
|
compiler/testData/cli/jvm/signatureClash.kt:8:5: error: platform declaration clash: The following declarations have the same JVM signature (getA()I):
|
|
fun `<get-a>`(): Int defined in A
|
|
fun getA(): Int defined in A
|
|
fun getA(): Int = 1
|
|
^
|
|
compiler/testData/cli/jvm/signatureClash.kt:9:5: error: platform declaration clash: The following declarations have the same JVM signature (getA()I):
|
|
fun `<get-a>`(): Int defined in A
|
|
fun getA(): Int defined in A
|
|
val a: Int = 1
|
|
^
|
|
compiler/testData/cli/jvm/signatureClash.kt:12:1: error: platform declaration clash: The following declarations have the same JVM signature (getB()I):
|
|
fun `<get-b>`(): Int defined in root package
|
|
fun getB(): Int defined in root package
|
|
fun getB(): Int = 1
|
|
^
|
|
compiler/testData/cli/jvm/signatureClash.kt:13:1: error: platform declaration clash: The following declarations have the same JVM signature (getB()I):
|
|
fun `<get-b>`(): Int defined in root package
|
|
fun getB(): Int defined in root package
|
|
val b: Int = 1
|
|
^
|
|
compiler/testData/cli/jvm/signatureClash.kt:20:5: error: accidental override: The following declarations have the same JVM signature (getTr()I):
|
|
fun `<get-tr>`(): Int defined in SubTr
|
|
fun getTr(): Int defined in SubTr
|
|
val tr = 1
|
|
^
|
|
compiler/testData/cli/jvm/signatureClash.kt:24:1: error: platform declaration clash: The following declarations have the same JVM signature (access$f(LC;)V):
|
|
fun `access$f`(`$this`: C): Unit defined in C
|
|
fun `access$f`(c: C): Unit defined in C
|
|
class C {
|
|
^
|
|
compiler/testData/cli/jvm/signatureClash.kt:26:5: error: platform declaration clash: The following declarations have the same JVM signature (access$f(LC;)V):
|
|
fun `access$f`(`$this`: C): Unit defined in C
|
|
fun `access$f`(c: C): Unit defined in C
|
|
fun `access$f`(c: C) {}
|
|
^
|
|
COMPILATION_ERROR
|