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
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
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.
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
The rationale is similar to the rationale for return types in #11 and #115.
If
A: B
and on an variableb
of typeB
we callb.foo(42)
, that means, thatA.foo
must also be able to acceptint
, becauseb
can actually hold a value of typeA
.Also related to: #131, #185
The text was updated successfully, but these errors were encountered: