stc icon indicating copy to clipboard operation
stc copied to clipboard

feat(ts/analyzer): Handle assignment of a type parameter extending an intrinsic type

Open yamgent opened this issue 2 years ago • 3 comments

Description:

Apply intrinsic to extend's constraints where applicable.

BREAKING CHANGE:

Related issue (if exists):

Fix #335.

yamgent avatar Dec 01 '22 14:12 yamgent

Can you fix clippy issues?

kdy1 avatar Dec 02 '22 04:12 kdy1

Is it better if, instead of converting the type completely, I store the resolved constraint inside the type, then modify the assignment check to compare against the resolved constraint? This way would be quite similar to how tsc behaves.

Another way would be to resolve the constraint only during assignment check.

yamgent avatar Dec 06 '22 00:12 yamgent

Yes it would be better

kdy1 avatar Dec 06 '22 00:12 kdy1

@kdy1 sorry for the long wait, it's ready now!

yamgent avatar Dec 23 '22 13:12 yamgent