mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
525 B
TypeScript
29 lines
525 B
TypeScript
//// [tests/cases/compiler/controlFlowOuterVariable.ts] ////
|
|
|
|
//// [controlFlowOuterVariable.ts]
|
|
// Repros from #10641
|
|
|
|
const CONFIG = {
|
|
foo: '',
|
|
setFoo: function(foo: string) {
|
|
CONFIG.foo = foo;
|
|
}
|
|
};
|
|
|
|
const helper = function<T>(t: T[]) {
|
|
helper(t.slice(1));
|
|
}
|
|
|
|
//// [controlFlowOuterVariable.js]
|
|
"use strict";
|
|
// Repros from #10641
|
|
const CONFIG = {
|
|
foo: '',
|
|
setFoo: function (foo) {
|
|
CONFIG.foo = foo;
|
|
}
|
|
};
|
|
const helper = function (t) {
|
|
helper(t.slice(1));
|
|
};
|