2015-09-24 22:52:19 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
2015-09-25 00:46:00 +02:00
|
|
|
// Repros from issues #4949 and #4818
|
|
|
|
|
2015-09-24 22:52:19 +02:00
|
|
|
////const result = [{ foo: 'hello' }]
|
|
|
|
//// .map(({ /*1*/foo }) => /*2*/foo)
|
|
|
|
//// .map(foo => foo);
|
2015-09-25 00:46:00 +02:00
|
|
|
////
|
|
|
|
////const f = (foo: (bar: string[]) => void) => { };
|
|
|
|
////
|
|
|
|
////f(([a, b]) => {
|
|
|
|
//// /*3*/a.charAt(0); // Not okay: inferred as `any`
|
|
|
|
////});
|
2015-09-24 22:52:19 +02:00
|
|
|
|
2016-09-09 18:02:55 +02:00
|
|
|
verify.quickInfos({
|
|
|
|
1: "var foo: string",
|
|
|
|
2: "var foo: string",
|
|
|
|
3: "var a: string"
|
|
|
|
});
|