Adjust testData after contains transformation
This commit is contained in:
@@ -6,9 +6,9 @@ interface A0 {
|
||||
|
||||
class B0 : Collection<String>, A0 {
|
||||
override fun isEmpty() = throw UnsupportedOperationException()
|
||||
override fun contains(o: Any?) = throw UnsupportedOperationException()
|
||||
override fun contains(o: String) = throw UnsupportedOperationException()
|
||||
override fun iterator() = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<Any?>) = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<String>) = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
open class A1 {
|
||||
@@ -17,9 +17,9 @@ open class A1 {
|
||||
|
||||
class B1 : Collection<String>, A1() {
|
||||
override fun isEmpty() = throw UnsupportedOperationException()
|
||||
override fun contains(o: Any?) = throw UnsupportedOperationException()
|
||||
override fun contains(o: String) = throw UnsupportedOperationException()
|
||||
override fun iterator() = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<Any?>) = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<String>) = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
interface I2 {
|
||||
@@ -42,9 +42,9 @@ interface I4<T> {
|
||||
|
||||
class B4 : Collection<String>, I4<Int> {
|
||||
override fun isEmpty() = throw UnsupportedOperationException()
|
||||
override fun contains(o: Any?) = throw UnsupportedOperationException()
|
||||
override fun contains(o: String) = throw UnsupportedOperationException()
|
||||
override fun iterator() = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<Any?>) = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<String>) = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
interface I5 : Collection<String> {
|
||||
@@ -53,9 +53,9 @@ interface I5 : Collection<String> {
|
||||
|
||||
class B5 : I5 {
|
||||
override fun isEmpty() = throw UnsupportedOperationException()
|
||||
override fun contains(o: Any?) = throw UnsupportedOperationException()
|
||||
override fun contains(o: String) = throw UnsupportedOperationException()
|
||||
override fun iterator() = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<Any?>) = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<String>) = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -6,7 +6,7 @@ class A1 : MutableCollection<String> {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override fun contains(o: Any?): Boolean {
|
||||
override fun contains(o: String): Boolean {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ class A1 : MutableCollection<String> {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override fun containsAll(c: Collection<Any?>): Boolean {
|
||||
override fun containsAll(c: Collection<String>): Boolean {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user