Minor: add Suppress usage to CONFLICTING_JVM_DECLARATIONS test

Related to KT-54366
This commit is contained in:
Mikhail Glukhikh
2022-10-14 09:20:52 +02:00
committed by Space Team
parent 69a4de0461
commit 185e74fd26
2 changed files with 2 additions and 7 deletions
@@ -2,6 +2,7 @@ class Foo {
val x: Int
get() = 42
@Suppress("CONFLICTING_JVM_DECLARATIONS")
fun getX() = 42
@JvmName("getX")
+1 -7
View File
@@ -7,13 +7,7 @@ compiler/testData/cli/jvm/conflictingJvmDeclarations.kt:2:5: error: platform dec
fun getY(): Int defined in Foo
val x: Int
^
compiler/testData/cli/jvm/conflictingJvmDeclarations.kt:5: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 getX() = 42
^
compiler/testData/cli/jvm/conflictingJvmDeclarations.kt:7:5: error: platform declaration clash: The following declarations have the same JVM signature (getX()I):
compiler/testData/cli/jvm/conflictingJvmDeclarations.kt:8: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