Changed semantics of ImportInsertHelper.importDescriptor() - it does not check if we allowed to import it on reference shortening

This commit is contained in:
Valentin Kipyatkov
2015-10-18 11:13:56 +03:00
parent 1730069d5e
commit b62260180f
11 changed files with 28 additions and 22 deletions
-1
View File
@@ -1 +0,0 @@
// IMPORT: kotlin.Map.Entry
@@ -1 +0,0 @@
Failed to add import
@@ -0,0 +1,5 @@
package dependency
object MyObject {
fun someFun(){}
}
+4
View File
@@ -0,0 +1,4 @@
// IMPORT: dependency.MyObject.someFun
fun foo() {
someFun()
}
+6
View File
@@ -0,0 +1,6 @@
import dependency.MyObject.someFun
// IMPORT: dependency.MyObject.someFun
fun foo() {
someFun()
}
-1
View File
@@ -1,2 +1 @@
// IMPORT: kotlin.Map.Entry
// IMPORT_NESTED_CLASSES: true
-1
View File
@@ -1,4 +1,3 @@
import kotlin.Map.*
// IMPORT: kotlin.Map.Entry
// IMPORT_NESTED_CLASSES: true