tests: Update external tests (1.1.2-dev-393)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
class N() : ArrayList<Any>() {
|
||||
override fun add(el: Any) : Boolean {
|
||||
if (!super<ArrayList>.add(el)) {
|
||||
throw Exception()
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val n = N()
|
||||
if (n.add("239")) return "fail"
|
||||
if (n.get(0) == "239") return "OK";
|
||||
return "fail";
|
||||
}
|
||||
Reference in New Issue
Block a user