JS IR: mute codegen box tests automatically

This commit is contained in:
Anton Bannykh
2018-06-07 14:17:45 +03:00
parent 7e1713af44
commit 96355e2732
2384 changed files with 2384 additions and 0 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val aByte: Array<Byte> = arrayOf<Byte>(1)
val bByte: ByteArray = byteArrayOf(1)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
import kotlin.test.*
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class AByte(var value: Byte) {
operator fun get(i: Int) = value
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
operator fun Long.get(i: Int) = this
operator fun Long.set(i: Int, newValue: Long) {}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A<T>(var value: T) {
operator fun get(i: Int) = value
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
object ExtProvider {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun box(): String {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
var aByte: Byte? = 0
var bByte: Byte = 0
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface Base
class Derived: Base
class Another: Base
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class Base
class Derived: Base()
operator fun Derived.inc(): Derived { return Derived() }
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
public fun box() : String {
var i : Short?
i = 10
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class MyClass
operator fun MyClass?.inc(): MyClass? = null
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface Base
class Derived: Base
class Another: Base
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class Base
class Derived: Base()
operator fun Derived.inc(): Derived { return Derived() }