Type alias shouldn't expand to a malformed type (e.g., 'Array<Nothing>').

This commit is contained in:
Dmitry Petrov
2016-06-09 17:35:36 +03:00
parent d02785806d
commit 9a7bbc1516
6 changed files with 25 additions and 0 deletions
@@ -0,0 +1,6 @@
typealias A<T> = Array<T>
typealias AA<T> = A<A<T>>
typealias AN = <!TYPEALIAS_EXPANDED_TO_MALFORMED_TYPE!>A<Nothing><!>
typealias AAN = <!TYPEALIAS_EXPANDED_TO_MALFORMED_TYPE!>AA<Nothing><!>
@@ -0,0 +1,6 @@
package
public typealias A</*0*/ T> = kotlin.Array<T>
public typealias AA</*0*/ T> = A<A<T>>
public typealias AAN = AA<kotlin.Nothing>
public typealias AN = A<kotlin.Nothing>