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.
14 lines
617 B
Plaintext
Vendored
14 lines
617 B
Plaintext
Vendored
compiler/testData/cli/jvm/conflictingJvmDeclarations.kt:3:9: error: platform declaration clash: The following declarations have the same JVM signature (getX()I):
|
|
fun `<get-x>`(): Int defined in Foo
|
|
fun getX(): Int defined in Foo
|
|
fun getY(): Int defined in Foo
|
|
get() = 42
|
|
^
|
|
compiler/testData/cli/jvm/conflictingJvmDeclarations.kt:9:5: error: platform declaration clash: The following declarations have the same JVM signature (getX()I):
|
|
fun `<get-x>`(): Int defined in Foo
|
|
fun getX(): Int defined in Foo
|
|
fun getY(): Int defined in Foo
|
|
fun getY() = 42
|
|
^
|
|
COMPILATION_ERROR
|