32 lines
535 B
TypeScript
32 lines
535 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////namespace N1 {
|
|
//// export interface I1 {
|
|
//// f1():string;
|
|
//// }
|
|
////}
|
|
////interface I1 {
|
|
//// f1();
|
|
////}
|
|
////
|
|
////class C1 implements N1.I1 {}
|
|
|
|
verify.codeFix({
|
|
description: "Implement interface 'N1.I1'",
|
|
newFileContent:
|
|
`namespace N1 {
|
|
export interface I1 {
|
|
f1():string;
|
|
}
|
|
}
|
|
interface I1 {
|
|
f1();
|
|
}
|
|
|
|
class C1 implements N1.I1 {
|
|
f1(): string {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
}`,
|
|
});
|