KT-60940 [Analysis API] Properly handle vararg types in KtFirReferenceShortener

^KT-60940 Fixed
^KTIJ-26518 Fixed
This commit is contained in:
Roman Golyshev
2023-08-03 19:51:21 +02:00
committed by teamcity
parent 68774609f9
commit d46be70933
5 changed files with 58 additions and 6 deletions
@@ -0,0 +1,7 @@
// FILE: main.kt
fun test(vararg args: <expr>dependency.Foo</expr>) {}
// FILE: dependency.kt
package dependency
class Foo
@@ -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