tests: Mute tests with java collection inheritance

This commit is contained in:
Ilya Matveev
2017-03-09 14:11:23 +03:00
committed by ilmat192
parent e815aa3f73
commit 60bcc50340
10 changed files with 13 additions and 1 deletions
@@ -1,3 +1,5 @@
// IGNORE_BACKEND: NATIVE
open class BaseStringList: ArrayList<String>() { open class BaseStringList: ArrayList<String>() {
} }
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
class A : HashSet<Long>() class A : HashSet<Long>()
fun box(): String { fun box(): String {
@@ -1,5 +1,5 @@
// KT-6042 java.lang.UnsupportedOperationException with ArrayList // KT-6042 java.lang.UnsupportedOperationException with ArrayList
// IGNORE_BACKEND: NATIVE
class A : ArrayList<String>() class A : ArrayList<String>()
fun box(): String { fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
class A : HashMap<String, Double>() class A : HashMap<String, Double>()
fun box(): String { fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
class A : HashSet<Long>() class A : HashSet<Long>()
fun box(): String { fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
interface A0 { interface A0 {
val size: Int get() = 56 val size: Int get() = 56
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
open class Base<Target : DatabaseEntity>() : HashSet<Target>() { open class Base<Target : DatabaseEntity>() : HashSet<Target>() {
override fun remove(element: Target): Boolean { override fun remove(element: Target): Boolean {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
open class Map1 : HashMap<String, Any?>() open class Map1 : HashMap<String, Any?>()
class Map2 : Map1() class Map2 : Map1()
@@ -1,3 +1,5 @@
// IGNORE_BACKEND: NATIVE
class A : ArrayList<String>() { class A : ArrayList<String>() {
override val size: Int get() = super.size + 56 override val size: Int get() = super.size + 56
} }
@@ -1,3 +1,5 @@
// IGNORE_BACKEND: NATIVE
class N() : ArrayList<Any>() { class N() : ArrayList<Any>() {
override fun add(el: Any) : Boolean { override fun add(el: Any) : Boolean {
if (!super<ArrayList>.add(el)) { if (!super<ArrayList>.add(el)) {