[AA] add generated tests for scripts

^KT-61431
This commit is contained in:
Dmitrii Gridin
2023-08-24 14:30:06 +02:00
committed by Space Team
parent 932c2a6e15
commit 5557ea690d
7 changed files with 109 additions and 86 deletions
@@ -1,11 +1,9 @@
// 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
import a.b.c.dependency.Foo.Nested
class Foo {
class Nested
}
fun foo<caret>(): a.b.c.dependency.Foo.Nested = t
@@ -1,7 +1,7 @@
with DO_NOT_SHORTEN:
with SHORTEN_IF_ALREADY_IMPORTED:
[type] a.b.c.dependency.Foo
[type] a.b.c.dependency.Foo.Nested
with SHORTEN_AND_IMPORT:
[type] a.b.c.dependency.Foo
[type] a.b.c.dependency.Foo.Nested
with SHORTEN_AND_STAR_IMPORT:
[type] a.b.c.dependency.Foo
[type] a.b.c.dependency.Foo.Nested
@@ -1,9 +1,7 @@
// FILE: main.kts
fun foo<caret>(): a.b.c.dependency.Foo = t
// FILE: dependency.kt
package a.b.c.dependency
class Foo {
class Nested
}
fun foo<caret>(): a.b.c.dependency.Foo.Nested = t
@@ -1,4 +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.Nested
with SHORTEN_AND_STAR_IMPORT:
[type] a.b.c.dependency.Foo.Nested