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
This behavior seems to make sense. prop doesn't have a field property in the base class where propCopy is defined. If you redefine the field on the subclass the error goes away.
HerringtonDarkholme
changed the title
Inconsistent index access type for this type
[feature request] consistent index access type for this type
Nov 21, 2016
Sorry it's me again....
it seems this type is resolved too eagerly in parent class.
TypeScript Version: nightly
Code
Expected behavior:
Code should compile. both
propCopy
andpropCopy2
have the same type.Actual behavior:
Error on
b.propCopy.field
,b.propCopy
is typed as{}
The text was updated successfully, but these errors were encountered: