import js.lib.Promise; class Mismatch { static function main() { var p:Thenable = new Promise(null); p.then(x -> 10, e -> ""); } }