TypeScript/tests/cases/compiler/controlFlowOuterVariable.ts

14 lines
228 B
TypeScript
Raw Normal View History

2016-09-09 19:05:49 +02:00
// @strictNullChecks: true
// Repros from #10641
const CONFIG = {
foo: '',
setFoo: function(foo: string) {
CONFIG.foo = foo;
}
};
const helper = function<T>(t: T[]) {
helper(t.slice(1));
}