Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Instance function parameter types should propagate to descendants in type hierarchy #194

Closed
lostmsu opened this issue Oct 4, 2018 · 0 comments

Comments

@lostmsu
Copy link
Contributor

lostmsu commented Oct 4, 2018

The rationale is similar to the rationale for return types in #11 and #115.

If A: B and on an variable b of type B we call b.foo(42), that means, that A.foo must also be able to accept int, because b can actually hold a value of type A.

Also related to: #131, #185

@lostmsu lostmsu changed the title Instance function parameter types should propagate up in type hierarchy Instance function parameter types should propagate to descendants in type hierarchy Oct 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant