Browse Source

unit test for #4445 & #4446

Alexander Kuzmenko 10 năm trước cách đây
mục cha
commit
1d7ea4f81f
1 tập tin đã thay đổi với 17 bổ sung0 xóa
  1. 17 0
      tests/unit/src/unit/issues/Issue4445.hx

+ 17 - 0
tests/unit/src/unit/issues/Issue4445.hx

@@ -0,0 +1,17 @@
+package unit.issues;
+
+#if php
+@:rtti
+@somemeta
+class ClassWithRttiMeta {
+
+}
+#end
+
+class Issue4445 extends Test {
+    #if php
+    function test() {
+        eq(true, haxe.rtti.Rtti.hasRtti(ClassWithRttiMeta));
+    }
+    #end
+}