We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42babc5 commit b3ccb56Copy full SHA for b3ccb56
1 file changed
tests/cases/fourslash/goToDefinitionUnionTypeProperty4.ts
@@ -0,0 +1,32 @@
1
+/// <reference path='fourslash.ts' />
2
+
3
+////interface SnapCrackle {
4
+//// /*def1*/pop(): string;
5
+////}
6
+////
7
+////interface Magnitude {
8
+//// /*def2*/pop(): number;
9
10
11
+////interface Art {
12
+//// /*def3*/pop(): boolean;
13
14
15
+////var art: Art;
16
+////var magnitude: Magnitude;
17
+////var snapcrackle: SnapCrackle;
18
19
+////var x = (snapcrackle || magnitude || art)./*usage*/pop;
20
21
+goTo.marker("usage");
22
+verify.definitionCountIs(3);
23
+goTo.definition(0);
24
+verify.caretAtMarker("def1");
25
26
27
+goTo.definition(1);
28
+verify.caretAtMarker("def2");
29
30
31
+goTo.definition(2);
32
+verify.caretAtMarker("def3");
0 commit comments