Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/unlabeled-break-within-label-switch.ts
T

23 lines
370 B
TypeScript
Raw Normal View History

2026-08-27 21:09:14 +00:00
import {CONST_STRING0} from 'shared-runtime';
function useHook(cond) {
const log = [];
switch (CONST_STRING0) {
case CONST_STRING0:
log.push(`@A`);
bb0: {
if (cond) {
break;
}
log.push(`@B`);
}
log.push(`@C`);
}
return log;
}
export const FIXTURE_ENTRYPOINT = {
fn: useHook,
params: [true],
};