Browse Source

Add test for #6376

Caue Waneck 7 năm trước cách đây
mục cha
commit
2626d71722
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      tests/unit/src/unit/issues/Issue6376.hx

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

@@ -0,0 +1,9 @@
+package unit.issues;
+
+class Issue6376 extends Test {
+	public function test() {
+		var s:Dynamic = "foo";
+		var indexOf = Reflect.field(s, "indexOf");
+		eq(Reflect.callMethod(s, indexOf, ["o", 0]), 1);
+	}
+}