Added diagnostic tests for inference and incorporation
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
fun <T> arrayOf(vararg t : T) : Array<T> = t as Array<T>
|
||||
|
||||
fun test() {
|
||||
val array = arrayOf(arrayOf(1))
|
||||
array checkType { _<Array<Array<Int>>>() }
|
||||
}
|
||||
Reference in New Issue
Block a user