Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A collection of subtypes should be assignable where a collection of a super type is expected #150

Open
abstratt opened this issue May 19, 2018 · 0 comments

Comments

@abstratt
Copy link
Owner

abstratt commented May 19, 2018

For instance, if a query returns Transaction[*], I should be able to assign Deposit[*] or Withdrawal[*] to it.

Same applies when invoking other operations and passing arguments. If Transaction[*] was expected, I should be able to pass Deposit[*] or Withdrawal[*] in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant