元组push问题

固定类型的元组修改下标属性可以正确的得到错误提示,但定长为2的元组居然可以push不报错
image.png

  1. let tuple:[number, string] = [1, '2']
  2. tuple[1] = '3'
  3. tuple[1] = 3
  4. tuple[2] = 3
  5. tuple.push(3)