Main.hx 239 B

1234567891011121314
  1. class Promise<T> {
  2. public function then<TOut>():Promise<TOut> { return null; }
  3. }
  4. typedef Thenable<T> = {
  5. function then():Thenable<T>;
  6. }
  7. class Main {
  8. static function main() {
  9. var p:Promise<Int> = null;
  10. var t:Thenable<Int> = p;
  11. }
  12. }