JS IR: unmute tests

This commit is contained in:
Anton Bannykh
2018-06-20 17:07:46 +03:00
parent c077b3ca5d
commit 9039b75c25
42 changed files with 0 additions and 42 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface Id<T> {
val id: T
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Double, val b: Double)
fun box() : String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Int, val b: String) {}
fun box() : String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
data class A(var a: Int, var b: String) {}
fun box() : String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
data class A(val o: String, val k: String) {
constructor() : this("O", "k")
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class X {
operator fun get(name: String, type: String = "none") = name + type
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class X {
var result: String = "fail"
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
abstract class Base {
abstract fun foo(a: String = "abc"): String
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class Foo {
open fun foo(x: CharSequence = "O"): CharSequence = x
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class Foo {
open fun foo(x: CharSequence = "O"): CharSequence = x
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun Int.foo(a: Int = 1): Int {
return a
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun Double.foo(a: Double = 1.0): Double {
return a
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun Double.foo(a: Double = 1.0, b: Double = 1.0): Double {
return a + b
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A {
companion object {
fun Int.foo(a: Int = 1): Int {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
object A {
fun Int.foo(a: Int = 1): Int {
return a
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun Int.foo(a: Int = 1, b: String): Int {
return a
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A {
fun Int.foo(a: Int = 1): Int {
return a
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A {
fun Double.foo(a: Double = 1.0): Double {
return a
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A {
fun Double.foo(a: Double = 1.0, b: Double = 1.0): Double {
return a + b
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A() {
fun foo(a: Int = 1,
b: Int = 2,
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun foo(a: Int = 1,
b: Int = 2,
c: Int = 3,
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A {
private fun Int.foo(other: Int = 5): Int = this + other
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// KT-5786 NoSuchMethodError: no accessor for private fun with default arguments
class A {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class Player(val name: String)
open class SlashPlayer(name: String) : Player(name)
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt
fun box() = ok()
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
var result = "Fail"
class A
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open abstract class B {
fun foo(arg: Int = 239 + 1) : Int = arg
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open abstract class B {
abstract fun foo2(arg: Int = 239) : Int
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A(val expected: Int) {
fun foo(x: Int, y: Int = x + 20, z: Int = y * 2) = z == expected
}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun foo(i: Int, j: Int = i) = j
fun box() = if (foo(1) == 1) "OK" else "fail"
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val capturedInConstructor = 1
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt
package test
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt
package test