Additional tests for illegal type in type alias expansion:
'Array<Nothing>' passed as an unused parameter to type alias.
This commit is contained in:
+6
@@ -4,3 +4,9 @@ typealias AA<T> = A<A<T>>
|
||||
typealias AN = <!TYPEALIAS_EXPANDED_TO_MALFORMED_TYPE!>A<Nothing><!>
|
||||
|
||||
typealias AAN = <!TYPEALIAS_EXPANDED_TO_MALFORMED_TYPE!>AA<Nothing><!>
|
||||
|
||||
typealias AAN2 = <!TYPEALIAS_EXPANDED_TO_MALFORMED_TYPE!>A<A<Nothing>><!>
|
||||
|
||||
typealias First<X, <!UNUSED_TYPEALIAS_PARAMETER!>Y<!>> = List<X>
|
||||
typealias UnusedAN1 = First<Int, <!UNSUPPORTED!>Array<Nothing><!>>
|
||||
typealias UnusedAN2 = First<Int, A<Nothing>> // TODO
|
||||
|
||||
+4
@@ -3,4 +3,8 @@ 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 AAN2 = A<A<kotlin.Nothing>>
|
||||
public typealias AN = A<kotlin.Nothing>
|
||||
public typealias First</*0*/ X, /*1*/ Y> = kotlin.collections.List<X>
|
||||
public typealias UnusedAN1 = First<kotlin.Int, kotlin.Array<kotlin.Nothing>>
|
||||
public typealias UnusedAN2 = First<kotlin.Int, A<kotlin.Nothing>>
|
||||
|
||||
Reference in New Issue
Block a user