Changed imports semantics: imports order does not affect resolve, explicit imports have higher priority for classes

This commit is contained in:
Valentin Kipyatkov
2015-01-14 20:55:53 +03:00
parent 8fc0063410
commit b888ea601c
23 changed files with 427 additions and 142 deletions
@@ -5,7 +5,7 @@ package test
import testing.first.*
import testing.second.*
val a1: `second`TestClass? = null
val a1: `!`TestClass? = null
//FILE:mainToFirst.kt
//----------------------------------------------------------------------------------
@@ -14,16 +14,16 @@ package test
import testing.second.*
import testing.first.*
val a2: `first`TestClass? = null
val a2: `!`TestClass? = null
//FILE:importFirst.kt
//----------------------------------------------------------------------------------
package testing.first
class ~first~TestClass
class TestClass
//FILE:importSecond.kt
//----------------------------------------------------------------------------------
package testing.second
class ~second~TestClass
class TestClass