typedefs correct resolve

This commit is contained in:
Dima Granetchi
2015-01-18 02:34:44 +02:00
parent 2520a65850
commit 94bca97041
4 changed files with 28 additions and 11 deletions
+11
View File
@@ -288,10 +288,21 @@ class BaseTest extends BuddySuite {
true.should.be(true);
});
it("bindx should resolve typedefs", {
var a:TypeBindable1 = new TypeBindable1();
Bind.bind(a.str, function (_, _) {
callNum ++;
});
a.str = "123";
callNum.should.be(1);
});
});
}
}
typedef TypeBindable1 = Bindable1;
class Bindable1 implements bindx.IBindable {