add tests
This commit is contained in:
parent
621c044790
commit
dee9ced060
3 changed files with 42 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//// interface I {
|
||||
//// x: number[];
|
||||
//// y: Array<number>;
|
||||
//// z: [number, string, I];
|
||||
//// }
|
||||
////
|
||||
//// class C implements I {[| |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
x: number[];
|
||||
y: number[];
|
||||
z: [number, string, I];
|
||||
`);
|
|
@ -0,0 +1,15 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//// namespace N1 {
|
||||
//// export interface I1 {
|
||||
//// x: number;
|
||||
//// }
|
||||
//// }
|
||||
//// interface I1 {
|
||||
//// f1();
|
||||
//// }
|
||||
//// class C1 implements N1.I1 {[| |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
x: number;
|
||||
`);
|
|
@ -0,0 +1,12 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//// namespace N {
|
||||
//// export interface I {
|
||||
//// y: I;
|
||||
//// }
|
||||
//// }
|
||||
//// class C1 implements N.I {[| |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
y: N.I;
|
||||
`);
|
Loading…
Reference in a new issue