jdonaldson / promhx

A promise and functional reactive programming library for Haxe
MIT License
146 stars 24 forks source link

Promise.when should use full type #27

Closed back2dos closed 10 years ago

back2dos commented 10 years ago

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 10 years ago

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 10 years ago

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