haxetink / tink_core

Core utilities
https://haxetink.github.io/tink_core
MIT License
117 stars 33 forks source link

FutureTrigger is not (properly) lifted to Promise with latest Haxe 4.2 #142

Closed nadako closed 4 years ago

nadako commented 4 years ago
var trigger = Future.trigger();
var lifted = Promise.lift(trigger);
$type(lifted);

After latest Haxe development updates, this prints tink.core.Promise<tink.core.FutureTrigger<Unknown<0>>> instead of tink.core.Promise<Unknown<0>> and the generated code is just a sync promise with the trigger as a value.

As mentioned elsewhere, I'm not sure if this is a tink_core issue or a Haxe issue (arguably it is a breaking change though), but I don't have time to figure that out by myself currently, so I'm creating this issue so we don't orget about it