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
open class SuperFoo {
public fun bar(): String {
if (this is Foo) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// See also KT-7801
class A
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class Wrapper<T>(var x: T)
inline fun <reified T> change(w: Wrapper<T>, x: Any?) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class A {
open val a = "OK"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class A {
class B : A() {
val a = "FAIL"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class A {
fun f(): String =
when (this) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class A {
open fun foo() = "FAIL"
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class Bob {
fun Bob.bar() = "OK"
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class KFoo {
fun foo(): String {
if (this is KFooQux) return qux
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun String?.foo() = this ?: "OK"
fun foo(i: Int?): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A(val s: String = "FAIL")
private fun foo(a: A?, aOther: A?): A {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun baz(s: String?): Int {
if (s == null) return 0
return when(s) {