Specify JVM target backend for other java related tests

This commit is contained in:
Mikhael Bogdanov
2018-12-21 12:19:02 +01:00
parent d76cb32781
commit f59b6a350f
43 changed files with 44 additions and 118 deletions
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyCollection<T>: Collection<T> {
override val size: Int get() = 0
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyIterator<T>(val v: T): Iterator<T> {
override fun next(): T = v
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyIterator<T>(val v: T): Iterator<T> {
override fun next(): T = v
+1 -3
View File
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyList<T>: List<T> {
override val size: Int get() = 0
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyListIterator<T> : ListIterator<T> {
override fun next(): T = null!!
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyList<T>(val v: T): List<T> {
override val size: Int get() = 0
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
open class Super<T>(val v: T) {
public fun add(e: T): Boolean = true
+1 -3
View File
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyMap<K, V>: Map<K, V> {
override val size: Int get() = 0
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyMapEntry<K, V>: Map.Entry<K, V> {
override fun hashCode(): Int = 0
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyMapEntry<K, V>: Map.Entry<K, V> {
override fun hashCode(): Int = 0
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyMap<K, V>: Map<K, V> {
override val size: Int get() = 0
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyList: List<String> {
override val size: Int get() = 0
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
abstract class A : Iterator<String> {
abstract fun remove(): Unit
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
interface Addable {
fun add(s: String): Boolean = true
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
open class SetStringImpl {
fun add(s: String): Boolean = false
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyCollection<T> : Collection<List<Iterator<T>>> {
override fun iterator() = null!!
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
class MyIterator<E : Number> : Iterator<E> {
override fun next() = null!!