Skip to content

Commit 2c814f4

Browse files
committed
Add jsdoc nullable union test case to fourslash
1 parent 164beb3 commit 2c814f4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
///<reference path="fourslash.ts" />
2+
// @allowNonTsExtensions: true
3+
// @Filename: Foo.js
4+
////
5+
//// * @param {never | {x: string}} p1
6+
//// * @param {undefined | {y: number}} p2
7+
//// * @param {null | {z: boolean}} p3
8+
//// * @returns {void} nothing
9+
//// */
10+
////function f(p1, p2, p3) {
11+
//// p1./*1*/
12+
//// p2./*2*/
13+
//// p3./*3*/
14+
////}
15+
16+
goTo.marker('1');
17+
verify.memberListContains("x");
18+
19+
goTo.marker('2');
20+
verify.memberListContains("y");
21+
22+
goTo.marker('3');
23+
verify.memberListContains("z");

0 commit comments

Comments
 (0)