I find the behavior of the the following TypeScript snippet inconsistent. Am I missing something?

前端 未结 0 1875
孤城傲影
孤城傲影 2020-11-21 15:54

Below, assigning a string literal to a variable of basic (primitive) type string is fine: let s3: string = "s".

But shouldn\'t Typ

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