Fix tests not to duplicate array constructor definitions as they are available now in builtins.
This commit is contained in:
-3
@@ -1,8 +1,5 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
fun <T> arrayOf(vararg t : T) : Array<T> = t as Array<T>
|
||||
|
||||
fun test() {
|
||||
val array = arrayOf(arrayOf(1))
|
||||
array checkType { _<Array<Array<Int>>>() }
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
package
|
||||
|
||||
@kotlin.Suppress(names = {"UNCHECKED_CAST"}) public fun </*0*/ T> arrayOf(/*0*/ vararg t: T /*kotlin.Array<out T>*/): kotlin.Array<T>
|
||||
public fun test(): kotlin.Unit
|
||||
|
||||
Reference in New Issue
Block a user