|
1 | 1 | /// <reference path="fourslash.ts" />
|
2 | 2 |
|
3 |
| -//// const object/*a*/ = { foo: 1, bar: 2 } |
4 |
| -//// const array/*b*/ = [1, 2] |
5 |
| -//// const a/*c*/ = object; |
| 3 | +//// const object = { foo: 1, bar: 2 } |
| 4 | +//// const array/*a*/ = [1, 2] |
| 5 | +//// const a/*b*/ = object; |
6 | 6 | //// const { foo, bar } = object;
|
7 | 7 | //// const {} = object;
|
8 |
| -//// const b/*d*/ = array; |
| 8 | +//// const b/*c*/ = array; |
9 | 9 | //// const [ first, second ] = array;
|
10 | 10 | //// const [] = array;
|
11 | 11 |
|
12 | 12 | const markers = test.markers();
|
13 | 13 | verify.getInlayHints([
|
14 |
| - { |
15 |
| - text: ': { foo: number; bar: number; }', |
16 |
| - position: markers[0].position, |
17 |
| - kind: ts.InlayHintKind.Type, |
18 |
| - whitespaceBefore: true |
19 |
| - }, |
20 | 14 | {
|
21 | 15 | text: ': number[]',
|
22 |
| - position: markers[1].position, |
| 16 | + position: markers[0].position, |
23 | 17 | kind: ts.InlayHintKind.Type,
|
24 | 18 | whitespaceBefore: true
|
25 | 19 | },
|
26 | 20 | {
|
27 | 21 | text: ': { foo: number; bar: number; }',
|
28 |
| - position: markers[2].position, |
| 22 | + position: markers[1].position, |
29 | 23 | kind: ts.InlayHintKind.Type,
|
30 | 24 | whitespaceBefore: true
|
31 | 25 | },
|
32 | 26 | {
|
33 | 27 | text: ': number[]',
|
34 |
| - position: markers[3].position, |
| 28 | + position: markers[2].position, |
35 | 29 | kind: ts.InlayHintKind.Type,
|
36 | 30 | whitespaceBefore: true
|
37 | 31 | }
|
|
0 commit comments