Replaced when appropriate 'TARGET_BACKEND: JVM' -> 'IGNORE_BACKEND: JS'. Enabled some succesfully working decompiledText tests.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// TODO: Enable for JS when it supports Java class library.
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JS
|
||||
class SomeClass { companion object }
|
||||
|
||||
fun box() =
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Enable for JS when it supports Java class library.
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
class TestJava(r : Runnable) : Runnable by r {}
|
||||
class TestRunnable() : Runnable {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// Won't ever work with JS backend.
|
||||
// TODO: Consider rewriting this test without using threads, since the issue is not about threads at all.
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
object RefreshQueue {
|
||||
val any = Any()
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// TODO: Enable when JS backend supports Java class library
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JS
|
||||
public class SomeClass() : java.lang.Object() {
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// TODO: Enable when JS backend supports Java class library, since FunctionX are required for interoperation
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JS
|
||||
class Works() : Function0<Any> {
|
||||
public override fun invoke():Any {
|
||||
return "Works" as Any
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// TODO: Enable when JS backend supports Java class library
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JS
|
||||
public open class Test(): java.util.RandomAccess, Cloneable, java.io.Serializable
|
||||
{
|
||||
public override fun clone(): Test = Test() // Override 'clone()' with more precise type 'Test'
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// TODO: Enable when JS backend supports Java class library
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JS
|
||||
import java.util.AbstractList
|
||||
|
||||
class MyList(): AbstractList<String>() {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// TODO: Enable for JS when it supports Java class library.
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JS
|
||||
import java.util.HashMap
|
||||
import java.io.*
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// TODO: Enable for JS when it supports Java class library.
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JS
|
||||
class List<T>(val head: T, val tail: List<T>? = null)
|
||||
|
||||
fun <T> List<T>.mapHead(f: (T)-> T): List<T> = List<T>(f(head), null)
|
||||
|
||||
Reference in New Issue
Block a user