Skip to content

Commit a4669a7

Browse files
NaridaLGerrit0
authored andcommitted
Add test for let x: Promise<object> (#881)
1 parent b2f4134 commit a4669a7

File tree

2 files changed

+121
-0
lines changed

2 files changed

+121
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
let x: object;
2+
let y: Promise<string>;
3+
let z: Promise<object>;
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
"id": 0,
3+
"name": "typedoc",
4+
"kind": 0,
5+
"flags": {},
6+
"children": [
7+
{
8+
"id": 1,
9+
"name": "\"promise-object\"",
10+
"kind": 1,
11+
"kindString": "External module",
12+
"flags": {
13+
"isExported": true
14+
},
15+
"originalName": "%BASE%/promise-object/promise-object.ts",
16+
"children": [
17+
{
18+
"id": 2,
19+
"name": "x",
20+
"kind": 32,
21+
"kindString": "Variable",
22+
"flags": {
23+
"isLet": true
24+
},
25+
"sources": [
26+
{
27+
"fileName": "promise-object.ts",
28+
"line": 1,
29+
"character": 5
30+
}
31+
],
32+
"type": {
33+
"type": "intrinsic",
34+
"name": "object"
35+
}
36+
},
37+
{
38+
"id": 3,
39+
"name": "y",
40+
"kind": 32,
41+
"kindString": "Variable",
42+
"flags": {
43+
"isLet": true
44+
},
45+
"sources": [
46+
{
47+
"fileName": "promise-object.ts",
48+
"line": 2,
49+
"character": 5
50+
}
51+
],
52+
"type": {
53+
"type": "reference",
54+
"name": "Promise",
55+
"typeArguments": [
56+
{
57+
"type": "intrinsic",
58+
"name": "string"
59+
}
60+
]
61+
}
62+
},
63+
{
64+
"id": 4,
65+
"name": "z",
66+
"kind": 32,
67+
"flags": {
68+
"isLet": true
69+
},
70+
"sources": [
71+
{
72+
"fileName": "%BASE%/promise-object/promise-object.ts",
73+
"line": 3,
74+
"character": 5
75+
}
76+
],
77+
"type": {
78+
"type": "reference",
79+
"name": "Promise",
80+
"typeArguments": [
81+
{
82+
"type": "intrinsic",
83+
"name": "object"
84+
}
85+
]
86+
}
87+
}
88+
],
89+
"groups": [
90+
{
91+
"title": "Variables",
92+
"kind": 32,
93+
"children": [
94+
2,
95+
3,
96+
4
97+
]
98+
}
99+
],
100+
"sources": [
101+
{
102+
"fileName": "promise-object.ts",
103+
"line": 1,
104+
"character": 0
105+
}
106+
]
107+
}
108+
],
109+
"groups": [
110+
{
111+
"title": "External modules",
112+
"kind": 1,
113+
"children": [
114+
1
115+
]
116+
}
117+
]
118+
}

0 commit comments

Comments
 (0)