Main.hx 275 B

12345678910111213141516171819
  1. function main() {
  2. Test.func();
  3. }
  4. @:keep
  5. @:native("Test")
  6. class TestStub {
  7. static function func() {}
  8. }
  9. class Test {
  10. public static function func() {
  11. trace(Unused);
  12. }
  13. }
  14. class Unused {
  15. static function __init__() throw new haxe.Exception("this should be eliminated");
  16. }