summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/checker/duplicateJvmSignature/functionAndProperty/topLevelMultifileRuntime.kt
blob: 3566bf1a7baa193c22c0765b756cc0c73d9289ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// FIR_COMPARISON

// RUNTIME
@file:JvmName("TopLevelMultifile")
@file:JvmMultifileClass
package test

<error descr="[CONFLICTING_JVM_DECLARATIONS] Platform declaration clash: The following declarations have the same JVM signature (getX()I):
    fun <get-x>(): Int defined in test in file topLevelMultifileRuntime.kt
    fun getX(): Int defined in test in file topLevelMultifileRuntime.kt">val x</error> = 1
<error descr="[CONFLICTING_JVM_DECLARATIONS] Platform declaration clash: The following declarations have the same JVM signature (getX()I):
    fun <get-x>(): Int defined in test in file topLevelMultifileRuntime.kt
    fun getX(): Int defined in test in file topLevelMultifileRuntime.kt">fun getX()</error> = 1