[Analysis API] Do not shorten qualifiers outside the selection range
^KTIJ-25116 Fixed
This commit is contained in:
committed by
teamcity
parent
ed7a3299f0
commit
da5f33d762
+14
@@ -0,0 +1,14 @@
|
||||
// FILE: main.kt
|
||||
import dependency.A
|
||||
|
||||
fun test() {
|
||||
val b = A.B(<expr>dependency.Foo()</expr>)
|
||||
}
|
||||
// FILE: dependency.kt
|
||||
package dependency
|
||||
|
||||
class Foo
|
||||
|
||||
sealed class A {
|
||||
class B(foo: Foo): A()
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
Before shortening: dependency.Foo()
|
||||
with DO_NOT_SHORTEN:
|
||||
with SHORTEN_IF_ALREADY_IMPORTED:
|
||||
with SHORTEN_AND_IMPORT:
|
||||
[qualifier] dependency.Foo()
|
||||
with SHORTEN_AND_STAR_IMPORT:
|
||||
[qualifier] dependency.Foo()
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// FILE: main.kt
|
||||
import dependency.A
|
||||
|
||||
fun test() {
|
||||
val b: A.B<<expr>dependency.Foo</expr>>
|
||||
}
|
||||
// FILE: dependency.kt
|
||||
package dependency
|
||||
|
||||
class Foo
|
||||
|
||||
sealed class A {
|
||||
class B<T>: A()
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
Before shortening: dependency.Foo
|
||||
with DO_NOT_SHORTEN:
|
||||
with SHORTEN_IF_ALREADY_IMPORTED:
|
||||
with SHORTEN_AND_IMPORT:
|
||||
[type] dependency.Foo
|
||||
with SHORTEN_AND_STAR_IMPORT:
|
||||
[type] dependency.Foo
|
||||
Reference in New Issue
Block a user