Re: callback not working as expected with overloaded variants of functions
Maybe another instance of the same problem:
Providing the same type siganture
and puttin this extension into scope (using 'using'):
public static function eitherFunc < A, B > (f : (A -> B -> Void) -> Void) : (Either < A, B > -> Void) -> Void return
function (cb : Either < A, B > -> Void)
f(function (a : A, b : B)
cb (if (a != null) Left(a) else Right(b))
this doesn't works either:
It says the non variant version of the method has no such field; failing to test with its variants..
So I'm pretty sad with my experiments.. :'(
Do some mighty god wanna look at fixing that unification issue?