You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish it would work somehow like the below:
Compiler sees it is trying to cast Unknown->Int to Expr. While the compiler search down the @:from list for compatible casts, if it sees 1-argument function cast with non-identical type signature, don't skip right away but try to cast each of the arguments and return type accordingly
i.e. Unknown to Expr & Int to Expr respectively. If all the casts succeed, use that cast.
The text was updated successfully, but these errors were encountered:
I never really looked at this issue and now that I am looking at it I don't understand it. Sounds like some black magic, so whatever you want to do here would require a haxe-evolution.
I wish it would work somehow like the below:
Compiler sees it is trying to cast
Unknown->Int
toExpr
. While the compiler search down the@:from
list for compatible casts, if it sees 1-argument function cast with non-identical type signature, don't skip right away but try to cast each of the arguments and return type accordinglyi.e.
Unknown
toExpr
&Int
toExpr
respectively. If all the casts succeed, use that cast.The text was updated successfully, but these errors were encountered: