Improve JvmConflictingDeclarations diagnostics rendering

This commit is contained in:
Pavel V. Talanov
2016-02-19 16:49:29 +03:00
parent d0b27a5fe2
commit b399bbffd7
6 changed files with 39 additions and 18 deletions
@@ -0,0 +1,12 @@
package a.b
class String
interface I {
<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<a.b.String>): Unit
fun foo(l: List<kotlin.String>): Unit">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<a.b.String>): Unit
fun foo(l: List<kotlin.String>): Unit">fun foo(l: List<kotlin.String>)</error>
}