UNPKG

jsx

Version:

a faster, safer, easier JavaScript

29 lines (28 loc) 470 B
/*EXPECTED hello goodbye */ class Base { function constructor() { } function constructor(n : number) { } function constructor(cb : (string) -> void) { cb("hello"); } function constructor(cb : () -> void) { cb(); } } class _Main extends Base { function constructor() { super((s) -> { log s; }); } function constructor(n : number) { super(() -> { log "goodbye"; }); } static function main(args : string[]) : void { new _Main(); new _Main(1); } }