Changed semantics of ImportInsertHelper.importDescriptor() - it does not check if we allowed to import it on reference shortening
This commit is contained in:
@@ -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
@@ -0,0 +1,4 @@
|
||||
// IMPORT: dependency.MyObject.someFun
|
||||
fun foo() {
|
||||
someFun()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import dependency.MyObject.someFun
|
||||
|
||||
// IMPORT: dependency.MyObject.someFun
|
||||
fun foo() {
|
||||
someFun()
|
||||
}
|
||||
@@ -1,2 +1 @@
|
||||
// IMPORT: kotlin.Map.Entry
|
||||
// IMPORT_NESTED_CLASSES: true
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import kotlin.Map.*
|
||||
|
||||
// IMPORT: kotlin.Map.Entry
|
||||
// IMPORT_NESTED_CLASSES: true
|
||||
|
||||
Reference in New Issue
Block a user