Local type aliases: resolve
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user