瀏覽代碼

[php7] test case for #6211

Alexander Kuzmenko 8 年之前
父節點
當前提交
5765073673
共有 3 個文件被更改,包括 15 次插入2 次删除
  1. 1 1
      extra/haxelib_src
  2. 5 1
      std/php7/Boot.hx
  3. 9 0
      tests/unit/src/unit/issues/Issue6211.hx

+ 1 - 1
extra/haxelib_src

@@ -1 +1 @@
-Subproject commit 031b0ea06102968a23b7f2c89c1810286264474c
+Subproject commit b0b6057d24cac4fc4464b259f269e6d80bd9bf9d

+ 5 - 1
std/php7/Boot.hx

@@ -493,9 +493,13 @@ class Boot {
 	/**
 		Make sure specified class is loaded
 	**/
-	static public inline function ensureLoaded(phpClassName:String ) : Bool {
+	static public inline function ensureLoaded( phpClassName:String ) : Bool {
 		return Global.class_exists(phpClassName) || Global.interface_exists(phpClassName);
 	}
+
+	static public function dynamicField( value:Dynamic, field:String ) : Dynamic {
+		throw "Not implemented";
+	}
 }
 
 

+ 9 - 0
tests/unit/src/unit/issues/Issue6211.hx

@@ -0,0 +1,9 @@
+package unit.issues;
+
+class Issue6211 extends unit.Test {
+
+    function test() {
+        var d:Dynamic = this;
+        t(Reflect.isFunction(d.test));
+    }
+}