TypeScript/tests/cases/fourslash/codeFixUndeclaredAcrossFiles2.ts

39 lines
795 B
TypeScript
Raw Normal View History

2017-06-01 02:18:36 +02:00
/// <reference path='fourslash.ts' />
// @allowJs: true
// @checkJs: true
// @Filename: f2.ts
//// import * as X from "./f1";
//// X.C.m0(1, "", []);
//// X.C.x;
//// let c = new X.C;
//// c.m1();
//// c.y = {};
// @Filename: f1.js
//// [|export class C {
//// constructor() { }
2017-06-01 23:12:25 +02:00
//// }
////
//// |]
2017-06-01 02:18:36 +02:00
2017-06-01 20:01:00 +02:00
verify.getAndApplyCodeFix(/*errorCode*/undefined, 0);
verify.getAndApplyCodeFix(/*errorCode*/undefined, 0);
verify.getAndApplyCodeFix(/*errorCode*/undefined, 0);
verify.getAndApplyCodeFix(/*errorCode*/undefined, 0);
2017-06-01 02:18:36 +02:00
verify.rangeIs(`
export class C {
2017-06-01 23:12:25 +02:00
m1() {
2017-06-01 02:18:36 +02:00
throw new Error("Method not implemented.");
}
2017-06-01 23:12:25 +02:00
static m0(arg0, arg1, arg2) {
2017-06-01 02:18:36 +02:00
throw new Error("Method not implemented.");
}
constructor() {
this.y = undefined;
}
}
2017-06-01 23:12:25 +02:00
C.x = undefined;
2017-06-01 02:18:36 +02:00
`);