Skip to content

Commit

Permalink
[php] test case dynamic method and empty constructor (closes #4723)
Browse files Browse the repository at this point in the history
  • Loading branch information
RealyUniqueName committed Dec 20, 2016
1 parent 9dc5d1b commit 3e7e7c7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/unit/src/unit/issues/Issue4723.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package unit.issues;

import haxe.Json;

class Issue4723 extends unit.Test {
function test() {
var t = new NoNormalMethods();
eq(10, t.test());

var t = new HasNormalMethod();
eq(10, t.test());
eq(20, t.test2());
}
}

private class NoNormalMethods {
public function new() {}
public dynamic function test() return 10;
}

private class HasNormalMethod {
public function new() {}
public dynamic function test() return 10;
public function test2() return 20;
}

0 comments on commit 3e7e7c7

Please sign in to comment.