Skip to content

Commit d8f29a5

Browse files
author
Arthur Ozga
committed
update tests
1 parent 20a4e32 commit d8f29a5

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
//// type Either<T> = { val: T } | Error;
4+
//// interface I {
5+
//// x: Either<Either<string>>;
6+
//// foo(x: Either<Either<string>>): void;
7+
//// }
8+
//// class C implements I {[| |]}
9+
10+
verify.rangeAfterCodeFix(`
11+
x: Either<Either<string>>;
12+
foo(x: Either<Either<string>>): void {
13+
throw new Error("Method not implemented.");
14+
}
15+
`);
16+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/// <reference path='fourslash.ts' />
22

33
//// type MyType = [string, number];
4-
//// interface I { test(a: MyType): void; }
4+
//// interface I { x: MyType; test(a: MyType): void; }
55
//// class C implements I {[| |]}
66

77
verify.rangeAfterCodeFix(`
8+
x: [string, number];
89
test(a: [string, number]): void {
910
throw new Error("Method not implemented.");
1011
}
1112
`);
12-

0 commit comments

Comments
 (0)