Browse Source

Add test for #6376

Caue Waneck 7 years ago
parent
commit
2626d71722
1 changed files with 9 additions and 0 deletions
  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);
+	}
+}