jdonaldson/promhx

Promise.when should use full type

back2dos opened this issue · 2 comments

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

This works for me on promhx dev/2.1.11, with Haxe 3.1.3. Are you on a newer version of Haxe?

I think this is working, reopen if there's more problems.