Main.hx 257 B

12345678910111213141516
  1. import haxe.macro.Context;
  2. class Main {
  3. static function main() {
  4. test();
  5. }
  6. macro static public function test() {
  7. try {
  8. Context.getType("");
  9. } catch(e:Dynamic) {
  10. Context.error(Std.string(e), Context.currentPos());
  11. }
  12. return macro {};
  13. }
  14. }