KT-59801 [FIR] scripting: tests for reference shortening

This commit is contained in:
Andrei Klunnyi
2023-07-13 15:19:56 +02:00
parent 3d40eba379
commit 0323b0fb19
7 changed files with 60 additions and 3 deletions
@@ -0,0 +1,11 @@
// FILE: main.kts
import a.b.c.dependency.Foo
fun foo<caret>(): a.b.c.dependency.Foo = t
// FILE: dependency.kt
package a.b.c.dependency
class Foo {
class Nested
}
@@ -0,0 +1,7 @@
with DO_NOT_SHORTEN:
with SHORTEN_IF_ALREADY_IMPORTED:
[type] a.b.c.dependency.Foo
with SHORTEN_AND_IMPORT:
[type] a.b.c.dependency.Foo
with SHORTEN_AND_STAR_IMPORT:
[type] a.b.c.dependency.Foo
@@ -0,0 +1,9 @@
// FILE: main.kts
fun foo<caret>(): a.b.c.dependency.Foo = t
// FILE: dependency.kt
package a.b.c.dependency
class Foo {
class Nested
}
@@ -0,0 +1,6 @@
with DO_NOT_SHORTEN:
with SHORTEN_IF_ALREADY_IMPORTED:
with SHORTEN_AND_IMPORT:
[type] a.b.c.dependency.Foo
with SHORTEN_AND_STAR_IMPORT:
[type] a.b.c.dependency.Foo