Local type aliases: resolve

This commit is contained in:
Dmitry Petrov
2016-06-09 18:02:36 +03:00
parent 9a7bbc1516
commit 6924ed53ec
4 changed files with 40 additions and 0 deletions
@@ -0,0 +1,19 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER
fun <T> emptyList(): List<T> = null!!
fun <T> foo() {
typealias LT = List<T>
val a: LT = emptyList()
fun localFun(): LT {
typealias LLT = List<T>
val b: LLT = a
return b
}
localFun()
}
@@ -0,0 +1,4 @@
package
public fun </*0*/ T> emptyList(): kotlin.collections.List<T>
public fun </*0*/ T> foo(): kotlin.Unit