///
// @allowJs: true
// @checkJs: true
// @noEmit: true
// @noImplicitAny: true
// @Filename: /promise.d.ts
////interface Promise {
////}
////declare var Promise: Promise;
// @Filename: /a.js
////export class D {}
////export default new D();
// @Filename: /b.js
////export class C {
//// set [|x|](val) { val; }
//// method() { this.x = import("./a"); }
////}
goTo.file("/b.js");
verify.codeFix({
index: 0,
description: "Infer type of 'x' from usage",
newFileContent:
`export class C {
/**
* @param {Promise} val
*/
set x(val) { val; }
method() { this.x = import("./a"); }
}`,
});