Files
kotlin-fork/idea/testData/checker/duplicateJvmSignature/functionAndProperty/trait.kt
T

11 lines
608 B
Kotlin
Vendored

// FIR_COMPARISON
interface T {
<error descr="[CONFLICTING_JVM_DECLARATIONS] Platform declaration clash: The following declarations have the same JVM signature (foo(Ljava/util/List;)V):
fun foo(l: List<Int>): Unit defined in T
fun foo(l: List<String>): Unit defined in T">fun foo(l: List<String>)</error> {}
<error descr="[CONFLICTING_JVM_DECLARATIONS] Platform declaration clash: The following declarations have the same JVM signature (foo(Ljava/util/List;)V):
fun foo(l: List<Int>): Unit defined in T
fun foo(l: List<String>): Unit defined in T">fun foo(l: List<Int>)</error> {}
}