KTIJ-24877 [Analysis API] Ignore type qualifiers with fake sources when optimizing imports
When optimizing imports, it does not make any sense to account for type qualifiers which are not directly present in the code ATM such implicit type references are present for every callable declaration call ^KTIJ-24877 Fixed
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
dependency.Bar
|
||||
dependency.One
|
||||
dependency.Two
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
import dependency.foo
|
||||
import dependency.Bar
|
||||
import dependency.One
|
||||
import dependency.Two
|
||||
|
||||
fun usage() {
|
||||
val (one, two) = foo()
|
||||
}
|
||||
|
||||
// FILE: dependency.kt
|
||||
package dependency
|
||||
|
||||
fun foo(): Bar = Bar()
|
||||
|
||||
data class Bar(val one: One, val two: Two)
|
||||
|
||||
class One
|
||||
class Two
|
||||
Reference in New Issue
Block a user