TypeScript/tests/cases/compiler/targetTypeObjectLiteralToAny.ts
2014-07-12 17:30:19 -07:00

10 lines
265 B
TypeScript

function suggest(){
var TypeScriptKeywords:string[];
var result:any;
TypeScriptKeywords.forEach(function(keyword) {
result.push({text:keyword, type:"keyword"}); // this should not cause a crash - push should be typed to any
});
}