Specify target backend as JVM for SAM tests; mute other failed tests and regenerate tests.

This commit is contained in:
Zalim Bashorov
2016-11-10 13:27:37 +03:00
parent 24819a079b
commit afa58599ec
17 changed files with 97 additions and 44 deletions
+3
View File
@@ -1,3 +1,6 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
fun foo(x: Any) = x as Runnable
fun box(): String {
+3
View File
@@ -1,3 +1,6 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
fun foo(x: Any) = x as? Runnable
fun box(): String {
+3
View File
@@ -1,3 +1,6 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
fun foo(x: Any) = x is Runnable
fun box(): String {
+3
View File
@@ -1,3 +1,6 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
fun foo(x: Any) = x !is Runnable
fun box(): String {
+3
View File
@@ -1,3 +1,6 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
import java.io.Serializable
public data class Pair<out A, out B> (
@@ -1,3 +1,6 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
data class A(val x: Array<Int>?, val y: IntArray?)
fun box(): String {
+3
View File
@@ -1,3 +1,6 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
public class RunnableFunctionWrapper(val f : () -> Unit) : Runnable {
public override fun run() {
f()
+3
View File
@@ -1,3 +1,6 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
fun box(): String {
return object {
fun foo(): String {
+3
View File
@@ -1,3 +1,6 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
fun box() : String {
var a = 1
@@ -1,3 +1,5 @@
// TARGET_BACKEND: JVM
fun box(): String {
var result = "FAIL"
val f = { result = "OK" }
@@ -1,3 +1,5 @@
// TARGET_BACKEND: JVM
var result = "FAIL"
fun getFun(): () -> Unit {
@@ -1,3 +1,5 @@
// TARGET_BACKEND: JVM
var result = "FAIL"
fun box(): String {
@@ -1,3 +1,5 @@
// TARGET_BACKEND: JVM
fun box(): String {
val o = "O"
var result = ""
@@ -1,3 +1,5 @@
// TARGET_BACKEND: JVM
class Box(val s: String) {
fun extract(): String {
var result = ""
@@ -1,3 +1,5 @@
// TARGET_BACKEND: JVM
var global = ""
fun Runnable(f: () -> Unit) = object : Runnable {
@@ -12,6 +12,10 @@ class C : B<String, Runnable> {
}
}
interface Runnable {
fun run(): Unit
}
fun box(): String {
val x = C().foo("", 0)
return if (x == null) "OK" else "Fail: $x"