Open alexnask opened 9 years ago
Actually, my objective is making the func closure work as well and throw warnings on the other cases.
The fix is actually pretty simple, the definitions added to closures that take a generic and turn it into the actual type were only applied to ACS closures for some reason.
By changing that to any closure when we can find a FunctionCall in the resolver's trail, they are applied to func { ... } closures as well.
Nowlet's implement a warning for non-closure functions passed!
(When we pass a generic argument when the function doesn't define it as generic, that should do the trick)
As pointed out in #923
The following code:
Only outputs "Hello ACS" before segfaulting, should print everything after I'm done with it