Minor: add Suppress usage to CONFLICTING_JVM_DECLARATIONS test
Related to KT-54366
This commit is contained in:
committed by
Space Team
parent
69a4de0461
commit
185e74fd26
@@ -2,6 +2,7 @@ class Foo {
|
|||||||
val x: Int
|
val x: Int
|
||||||
get() = 42
|
get() = 42
|
||||||
|
|
||||||
|
@Suppress("CONFLICTING_JVM_DECLARATIONS")
|
||||||
fun getX() = 42
|
fun getX() = 42
|
||||||
|
|
||||||
@JvmName("getX")
|
@JvmName("getX")
|
||||||
|
|||||||
@@ -7,13 +7,7 @@ compiler/testData/cli/jvm/conflictingJvmDeclarations.kt:2:5: error: platform dec
|
|||||||
fun getY(): Int defined in Foo
|
fun getY(): Int defined in Foo
|
||||||
val x: Int
|
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):
|
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
|
|
||||||
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):
|
|
||||||
fun `<get-x>`(): Int defined in Foo
|
fun `<get-x>`(): Int defined in Foo
|
||||||
fun getX(): Int defined in Foo
|
fun getX(): Int defined in Foo
|
||||||
fun getY(): Int defined in Foo
|
fun getY(): Int defined in Foo
|
||||||
|
|||||||
Reference in New Issue
Block a user