Promise.when should use full type
back2dos opened this issue · 2 comments
back2dos commented
Consider this:
var p1 = new promhx.Promise(),
p2 = new promhx.Promise();
promhx.Promise.when(p1, p2).then(function (a, b) return a + b);
It won't compile, because the macro doesn't use the fully qualified type: https://github.com/jdonaldson/promhx/blob/master/src/main/promhx/Promise.hx#L46
jdonaldson commented
This works for me on promhx dev/2.1.11, with Haxe 3.1.3. Are you on a newer version of Haxe?
jdonaldson commented
I think this is working, reopen if there's more problems.