* Add codefix to add 'void' to Promise resolved without value * Add specific error message in checker to reduce quick-fix time in editor
17 lines
355 B
TypeScript
17 lines
355 B
TypeScript
/// <reference path="fourslash.ts"/>
|
|
|
|
// @lib: es6
|
|
|
|
// @Filename: ./foo.ts
|
|
//// export function bar() { return 1; }
|
|
|
|
//// var x1 = import("./foo");
|
|
//// x1.then(foo => {
|
|
//// var s: string = foo.bar();
|
|
//// })
|
|
//// /*1*/
|
|
|
|
verify.numberOfErrorsInCurrentFile(1);
|
|
goTo.marker("1");
|
|
edit.insert(" ");
|
|
verify.numberOfErrorsInCurrentFile(1); |