typedefs correct resolve

This commit is contained in:
Dima Granetchi committed 2015-01-18 02:34:44 +02:00
1 parent 2520a65850
commit 94bca97041
4 files changed
+28 -11

No files matched your search

+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 {