2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/targetTypeObjectLiteralToAny.ts ===
function suggest(){
2014-08-28 21:52:44 +02:00
>suggest : () => void
2014-08-15 23:33:16 +02:00
var TypeScriptKeywords:string[];
>TypeScriptKeywords : string[]
var result:any;
>result : any
TypeScriptKeywords.forEach(function(keyword) {
2014-08-22 03:39:46 +02:00
>TypeScriptKeywords.forEach(function(keyword) { result.push({text:keyword, type:"keyword"}); // this should not cause a crash - push should be typed to any }) : void
2014-08-15 23:33:16 +02:00
>TypeScriptKeywords.forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void
>TypeScriptKeywords : string[]
>forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void
2014-08-22 03:39:46 +02:00
>function(keyword) { result.push({text:keyword, type:"keyword"}); // this should not cause a crash - push should be typed to any } : (keyword: string) => void
2014-08-15 23:33:16 +02:00
>keyword : string
result.push({text:keyword, type:"keyword"}); // this should not cause a crash - push should be typed to any
>result.push({text:keyword, type:"keyword"}) : any
>result.push : any
>result : any
>push : any
>{text:keyword, type:"keyword"} : { text: string; type: string; }
>text : string
2014-08-25 19:36:12 +02:00
>keyword : string
2014-08-15 23:33:16 +02:00
>type : string
});
}