tests: Update external tests (1.1.2-dev-393)
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
|
||||
open class A(val s: String) {
|
||||
|
||||
val z = s
|
||||
|
||||
fun test() = s
|
||||
|
||||
open inner class B(s: String): A(s) {
|
||||
fun testB() = z + test()
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val res = A("Fail").B("OK").testB()
|
||||
return if (res == "OKOK") "OK" else res;
|
||||
}
|
||||
Reference in New Issue
Block a user