K2 scripting: support script-level typealiases

This commit is contained in:
Ilya Chernikov
2023-06-07 16:45:12 +02:00
committed by Space Team
parent 70d2fcd9c4
commit 1a735b0842
6 changed files with 14 additions and 17 deletions
@@ -1,9 +0,0 @@
<!TOPLEVEL_TYPEALIASES_ONLY!>typealias TopLevelInScript = String<!>
class C {
<!TOPLEVEL_TYPEALIASES_ONLY!>typealias NestedInClass = String<!>
}
fun foo() {
<!TOPLEVEL_TYPEALIASES_ONLY!>typealias Local = String<!>
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
typealias TopLevelInScript = String
class C {