mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
414 B
TypeScript
21 lines
414 B
TypeScript
//// [tests/cases/compiler/blockedScopeVariableNotUnused1.ts] ////
|
|
|
|
//// [blockedScopeVariableNotUnused1.ts]
|
|
export function foo() {
|
|
const _fn = () => {
|
|
;(() => numFilesSelected)()
|
|
}
|
|
|
|
const numFilesSelected = 1
|
|
}
|
|
|
|
|
|
//// [blockedScopeVariableNotUnused1.js]
|
|
export function foo() {
|
|
const _fn = () => {
|
|
;
|
|
(() => numFilesSelected)();
|
|
};
|
|
const numFilesSelected = 1;
|
|
}
|