-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
TypeScript Version: 3.4.0-dev.201xxxxx
Search Terms:
Code
this code work at 3.5.2 and 3.6.0-dev.20190704
but fail at 3.6.0-dev.20190725
import Bluebird = require('bluebird');
let a: string[] = [];
Bluebird.resolve(a as string[])
.mapSeries(async function (vvvv)
{
console.log(vvvv.toUpperCase())
return vvvv;
})
;
Bluebird.resolve(a as string[])
.mapSeries(function (vvvv)
{
console.log(vvvv.toUpperCase())
return vvvv;
})
;
Bluebird.resolve(a as string[])
.mapSeries((vvvv) =>
{
console.log(vvvv.toUpperCase())
return vvvv;
})
;Expected behavior:
no error and infer to string
Actual behavior:
vvvv infer to unknown
Playground Link:
Related Issues:
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
