Type aliases.

This commit is contained in:
Dmitry Petrov
2016-09-01 18:46:58 +03:00
committed by Dmitry Petrov
parent 1b5dd50359
commit 264c8afc78
6 changed files with 36 additions and 8 deletions
+9
View File
@@ -0,0 +1,9 @@
typealias Test1 = String
fun foo() {
typealias TestLocal = String
}
class C {
typealias TestNested = String
}
+10
View File
@@ -0,0 +1,10 @@
FILE /typeAlias.kt
TYPEALIAS Test1 type=kotlin.String
FUN public fun foo(): kotlin.Unit
BLOCK_BODY
TYPEALIAS TestLocal type=kotlin.String
CLASS CLASS C
CONSTRUCTOR public constructor C()
BLOCK_BODY
INSTANCE_INITIALIZER_CALL classDescriptor=C
TYPEALIAS TestNested type=kotlin.String