blob: b898c9da668587da5ac63c44685fb70b28ac206f [file] [log] [blame]
open class Base
class Derived: Base()
operator fun Derived.inc(): Derived { return Derived() }
fun box() : String {
var i : Base
i = Derived()
val j = ++i
return if (j is Derived && i is Derived) "OK" else "fail j = $j i = $i"
}