/*EXPECTED
123
*/

native class Incr {
    function incr(n : number) : number;
}

class _Main extends Incr {
    override function incr(n : number) : number {
        return n + 1;
    }
    static function main(args : string[]) : void {
        var i : Incr = new _Main;
        log i.incr(123);
    }
}
