Error: Jump to case label in switch statement的一种解决方法
Error复现
由于在case 1中声明过的变量,在后续的case中依然是可见的,但t不能在后续的case中被初始化,因为t初始化代码属于另一个案例,且t不能被重复声明。
solu:对于case里的内容,使用显式的花括号将其括住。
reference
https://stackoverflow.com/questions/5685471/error-jump-to-case-label-in-switch-statement
=END=