Skip to content

Commit 7b56329

Browse files
committed
Add test case for generic Partial type
1 parent 0c38f21 commit 7b56329

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/// <reference path="fourslash.ts" />
2+
// @strict: true
3+
4+
//// interface Foo {
5+
//// a_a: boolean;
6+
//// a_b: boolean;
7+
//// a_c: boolean;
8+
//// b_a: boolean;
9+
//// }
10+
//// function partialFoo<T extends Partial<Foo>>(t: T) {return t}
11+
//// partialFoo({ /*1*/ });
12+
13+
verify.completions({ marker: '1', includes: ['a_a', 'a_b', 'a_c', 'b_a'] })

0 commit comments

Comments
 (0)