Main.hx 248 B

12345678910111213141516
  1. #if macro
  2. import haxe.macro.Context;
  3. #end
  4. class Main {
  5. #if !macro
  6. static function main()
  7. test();
  8. #end
  9. static macro function test() {
  10. try Context.typeof(macro foo)
  11. catch (e) Context.warning("foo", (macro 0).pos);
  12. return macro {};
  13. }
  14. }