Files
kotlin-fork/idea/testData/checker/duplicateJvmSignature/functionAndProperty/trait.kt
T
2017-05-26 13:58:46 +03:00

9 lines
589 B
Kotlin
Vendored

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> {}
}