tests: Mute tests with java collection inheritance
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
open class BaseStringList: ArrayList<String>() {
|
||||
}
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
class A : HashSet<Long>()
|
||||
|
||||
fun box(): String {
|
||||
|
||||
backend.native/tests/external/codegen/blackbox/builtinStubMethods/extendJavaCollections/arrayList.kt
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// KT-6042 java.lang.UnsupportedOperationException with ArrayList
|
||||
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
class A : ArrayList<String>()
|
||||
|
||||
fun box(): String {
|
||||
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
class A : HashMap<String, Double>()
|
||||
|
||||
fun box(): String {
|
||||
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
class A : HashSet<Long>()
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
interface A0 {
|
||||
val size: Int get() = 56
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
open class Base<Target : DatabaseEntity>() : HashSet<Target>() {
|
||||
override fun remove(element: Target): Boolean {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
open class Map1 : HashMap<String, Any?>()
|
||||
class Map2 : Map1()
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
class A : ArrayList<String>() {
|
||||
override val size: Int get() = super.size + 56
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
class N() : ArrayList<Any>() {
|
||||
override fun add(el: Any) : Boolean {
|
||||
if (!super<ArrayList>.add(el)) {
|
||||
|
||||
Reference in New Issue
Block a user