KT-11588 Type aliases

Type alias stubs indexing (required for index-based declaration providers)
This commit is contained in:
Dmitry Petrov
2016-05-18 17:19:47 +03:00
parent 8bf87a9a4f
commit a2ec580119
17 changed files with 257 additions and 8 deletions
@@ -0,0 +1,14 @@
//ALLOW_AST_ACCESS
package test
typealias S = String
typealias SS = S
typealias SSS = SS
val x1: S = ""
val x2: SS = ""
val x3: SSS = ""
val x4: S? = ""
val x5: SS? = ""
val x6: SSS? = ""
@@ -0,0 +1,17 @@
package test
public typealias S = kotlin.String
public typealias SS = test.S
public typealias SSS = test.SS
public val x1: test.S [= kotlin.String] = ""
public fun <get-x1>(): test.S [= kotlin.String]
public val x2: test.SS [= kotlin.String] = ""
public fun <get-x2>(): test.SS [= kotlin.String]
public val x3: test.SSS [= kotlin.String] = ""
public fun <get-x3>(): test.SSS [= kotlin.String]
public val x4: test.S? [= kotlin.String?] = ""
public fun <get-x4>(): test.S? [= kotlin.String?]
public val x5: test.SS? [= kotlin.String?] = ""
public fun <get-x5>(): test.SS? [= kotlin.String?]
public val x6: test.SSS? [= kotlin.String?] = ""
public fun <get-x6>(): test.SSS? [= kotlin.String?]
@@ -0,0 +1,13 @@
//ALLOW_AST_ACCESS
package test
typealias L<T> = List<T>
typealias LL<T> = L<T>
typealias LLL<T> = LL<T>
fun test1(x: L<String>) {}
fun test2(x: LL<String>) {}
fun test3(x: LLL<String>) {}
fun test4(x: L<L<String>>) {}
fun test5(x: LL<LL<String>>) {}
fun test6(x: LLL<LLL<String>>) {}
@@ -0,0 +1,11 @@
package test
public typealias L</*0*/ T> = kotlin.collections.List<T>
public typealias LL</*0*/ T> = test.L<T>
public typealias LLL</*0*/ T> = test.LL<T>
public fun test1(/*0*/ x: test.L<kotlin.String> [= kotlin.collections.List<out kotlin.String>]): kotlin.Unit
public fun test2(/*0*/ x: test.LL<kotlin.String> [= kotlin.collections.List<out kotlin.String>]): kotlin.Unit
public fun test3(/*0*/ x: test.LLL<kotlin.String> [= kotlin.collections.List<out kotlin.String>]): kotlin.Unit
public fun test4(/*0*/ x: test.L<test.L<kotlin.String> [= kotlin.collections.List<out kotlin.String>]> [= kotlin.collections.List<out test.L<kotlin.String> [= kotlin.collections.List<out kotlin.String>]>]): kotlin.Unit
public fun test5(/*0*/ x: test.LL<test.LL<kotlin.String> [= kotlin.collections.List<out kotlin.String>]> [= kotlin.collections.List<out test.LL<kotlin.String> [= kotlin.collections.List<out kotlin.String>]>]): kotlin.Unit
public fun test6(/*0*/ x: test.LLL<test.LLL<kotlin.String> [= kotlin.collections.List<out kotlin.String>]> [= kotlin.collections.List<out test.LLL<kotlin.String> [= kotlin.collections.List<out kotlin.String>]>]): kotlin.Unit