2018-01-10 02:15:08 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////const f: string = () => {
|
|
|
|
//// await Promise.resolve('foo');
|
|
|
|
////}
|
|
|
|
|
|
|
|
// should not change type if it's incorrectly set
|
|
|
|
verify.codeFix({
|
2020-06-17 01:55:03 +02:00
|
|
|
index: 0,
|
2018-01-10 02:15:08 +01:00
|
|
|
description: "Add async modifier to containing function",
|
|
|
|
newFileContent:
|
|
|
|
`const f: string = async () => {
|
|
|
|
await Promise.resolve('foo');
|
2020-04-02 19:06:14 +02:00
|
|
|
}`
|
2018-01-10 02:15:08 +01:00
|
|
|
});
|