Include file name for package-level members in diagnostics

This commit is contained in:
Dmitry Petrov
2017-05-25 13:12:41 +03:00
parent 7979663e6c
commit a86fe89aae
19 changed files with 47 additions and 24 deletions
@@ -4,8 +4,8 @@
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
fun getX(): Int defined in test">val x</error> = 1
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
fun getX(): Int defined in test">fun getX()</error> = 1
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
+1 -1
View File
@@ -2,4 +2,4 @@ open class A<T>()
class G<T>()
class B : A<<error descr="[WRONG_NUMBER_OF_TYPE_ARGUMENTS] One type argument expected for class G<T> defined in root package">G</error>>()
class B : A<<error descr="[WRONG_NUMBER_OF_TYPE_ARGUMENTS] One type argument expected for class G<T> defined in root package in file kt9887.kt">G</error>>()