Franco Ponticelli 12 лет назад
Родитель
Сommit
799dbde97e
2 измененных файлов с 13 добавлено и 6 удалено
  1. 0 6
      genphp.ml
  2. 13 0
      tests/unit/TestPhp.hx

+ 0 - 6
genphp.ml

@@ -2001,12 +2001,6 @@ let generate_inline_method ctx c m =
 	let block = open_block ctx in
 	newline ctx;
 
-	(* blocks
-	if ctx.com.debug then begin
-		spr ctx "$__hx__spos = $GLOBALS['%s']->length";
-		newline ctx;
-	end;
- *)
 	gen_expr ctx m.iexpr;
 	block();
 	old();

+ 13 - 0
tests/unit/TestPhp.hx

@@ -0,0 +1,13 @@
+package unit;
+
+class TestPhp extends Test
+{
+	function testAbstractEnum()
+	{
+		trace(Abstract);
+	}
+}
+
+enum Annotation {
+	Abstract;
+}