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
Actual behavior:
Property member does not exist on type TParam.
When you call f, you must pass a first (and second) argument which provide a member named member (this is enforced), so it's common sense that within f you should always have access to the field of TParam named member. It seems like the issue today is that when calculating a generic's constraint, we don't consider a mapped type's generics' constraints when calculating its constraint.
The text was updated successfully, but these errors were encountered:
Code
Expected behavior:
Code works
Actual behavior:
Property
member
does not exist on typeTParam
.When you call
f
, you must pass a first (and second) argument which provide a member namedmember
(this is enforced), so it's common sense that withinf
you should always have access to the field ofTParam
namedmember
. It seems like the issue today is that when calculating a generic's constraint, we don't consider a mapped type's generics' constraints when calculating its constraint.The text was updated successfully, but these errors were encountered: