[JS IR BE] Arrays, varargs

This commit is contained in:
Anton Bannykh
2018-09-12 14:31:22 +03:00
parent e24f68c357
commit 2e709a81fa
470 changed files with 761 additions and 585 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
package test.regressions.kt1149
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
package regressions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
package regressions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun <T> ArrayList<T>.findAll(predicate: (T) -> Boolean): ArrayList<T> {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun foo() {
val array = Array(0, { IntArray(0) } )
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A<T>(t: Array<Array<T>>) {
val a:Array<Array<T>> = t
}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
A()
return "OK"
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
private class One {
val a1 = arrayOf(
object { val fy = "text"}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun box(): String {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// KT-6153 java.lang.IllegalStateException while building
object Bug {
fun title(id:Int) = when (id) {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
package foo
fun box() : String {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun findPairless(a : IntArray) : Int {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun foo(useScriptArgs: Array<out Any?>?) {
val constructorArgs: Array<out Any?> = arrayOf(useScriptArgs.orEmpty())
}