mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
398 B
TypeScript
19 lines
398 B
TypeScript
//// [tests/cases/conformance/es6/templates/templateStringInSwitchAndCase.ts] ////
|
|
|
|
//// [templateStringInSwitchAndCase.ts]
|
|
switch (`abc${0}abc`) {
|
|
case `abc`:
|
|
case `123`:
|
|
case `abc${0}abc`:
|
|
`def${1}def`;
|
|
}
|
|
|
|
//// [templateStringInSwitchAndCase.js]
|
|
"use strict";
|
|
switch (`abc${0}abc`) {
|
|
case `abc`:
|
|
case `123`:
|
|
case `abc${0}abc`:
|
|
`def${1}def`;
|
|
}
|