Fix: Collect variables declare in switch-case.(fixes #1453)
Merge pull request #1464 from chriswong/fix-block-scoped-var-with-switch

Fix: Collect variables declare in switch-case.(fixes #1453)