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
Enumerable is invariant, so there is no relationship between Enumerable(String) and Enumerable(NoReturn), which Tuple() is a subtype of. See #3803. Similarly it can be shown that the subtyping relationship isn't transitive:
For Crystal 2.0 I'd like it if we could remove the special subtyping rules of Tuple and NamedTuple. They just make things too complex and inconsistent.
I'd expect an empty tuple to be considered an enumerable of any type. Compare this to the following, which works as expected
Tested on Crystal 1.5.1
The text was updated successfully, but these errors were encountered: