2017-03-17 02:02:34 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
////namespace N1 {
|
|
|
|
//// export interface I1 { x: number; }
|
|
|
|
////}
|
|
|
|
////interface I1 {
|
|
|
|
//// f1();
|
|
|
|
////}
|
|
|
|
////class C1 implements N1.I1 {}
|
2017-03-17 02:02:34 +01:00
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Implement interface 'N1.I1'",
|
|
|
|
newFileContent:
|
|
|
|
`namespace N1 {
|
|
|
|
export interface I1 { x: number; }
|
|
|
|
}
|
|
|
|
interface I1 {
|
|
|
|
f1();
|
|
|
|
}
|
2018-01-12 02:43:27 +01:00
|
|
|
class C1 implements N1.I1 {
|
|
|
|
x: number;
|
2017-12-07 21:14:18 +01:00
|
|
|
}`,
|
|
|
|
});
|