Render FQ name of default package as "root package" in OverloadResolver

This commit is contained in:
Alexander Udalov
2014-04-15 19:46:01 +04:00
parent 4f9f5d231b
commit 5be2a4945b
5 changed files with 18 additions and 1 deletions
@@ -0,0 +1,6 @@
// !DIAGNOSTICS_NUMBER: 2
// !DIAGNOSTICS: CONFLICTING_OVERLOADS
// !MESSAGE_TYPE: TEXT
fun foo(x: Int) = x
fun foo(y: Int) = y
@@ -0,0 +1,2 @@
<!-- conflictingOverloadsDefaultPackage1 -->
'internal fun foo(x: kotlin.Int): kotlin.Int' is already defined in root package
@@ -0,0 +1,2 @@
<!-- conflictingOverloadsDefaultPackage2 -->
'internal fun foo(y: kotlin.Int): kotlin.Int' is already defined in root package