KT-59801 [FIR] scripting: tests for reference shortening
This commit is contained in:
+11
@@ -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
|
||||
}
|
||||
+7
@@ -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
|
||||
+9
@@ -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
|
||||
}
|
||||
+6
@@ -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
|
||||
Reference in New Issue
Block a user