UNPKG

jsx

Version:

a faster, safer, easier JavaScript

21 lines (20 loc) 351 B
/*EXPECTED hello goodbye */ class _Main { function constructor() { } function constructor(n : number) { } function constructor(cb : (string) -> void) { cb("hello"); } function constructor(cb : () -> void) { cb(); } static function main(args : string[]) : void { new _Main((s) -> { log s; }); new _Main(() -> { log "goodbye"; }); } }