Type Narrowing not working as expected with generic constraints

后端 未结 0 1921
野性不改
野性不改 2021-01-14 14:49

I have a situation where the generic type is constraint by a union type, but I find that doing this does not make the type narrowing to work as expected. The code snippet be

相关标签:
回答
  • 消灭零回复
提交回复
热议问题