2016-10-11 23:09:21 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
////namespace N1 {
|
|
|
|
//// export interface I1 {
|
|
|
|
//// f1():string;
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
////interface I1 {
|
|
|
|
//// f1();
|
|
|
|
////}
|
2016-10-11 23:09:21 +02:00
|
|
|
////
|
2017-12-07 21:14:18 +01:00
|
|
|
////class C1 implements N1.I1 {}
|
2016-10-11 23:09:21 +02:00
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Implement interface 'N1.I1'",
|
|
|
|
newFileContent:
|
|
|
|
`namespace N1 {
|
|
|
|
export interface I1 {
|
|
|
|
f1():string;
|
|
|
|
}
|
2016-10-11 23:09:21 +02:00
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
interface I1 {
|
|
|
|
f1();
|
|
|
|
}
|
|
|
|
|
2018-01-12 02:43:27 +01:00
|
|
|
class C1 implements N1.I1 {
|
|
|
|
f1(): string {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
}`,
|
|
|
|
});
|