Skip to content

Commit

Permalink
Add test for let x: Promise<object> (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
NaridaL authored and Gerrit0 committed Jan 2, 2019
1 parent b2f4134 commit a4669a7
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/converter/promise-object/promise-object.ts
@@ -0,0 +1,3 @@
let x: object;
let y: Promise<string>;
let z: Promise<object>;
118 changes: 118 additions & 0 deletions src/test/converter/promise-object/specs.json
@@ -0,0 +1,118 @@
{
"id": 0,
"name": "typedoc",
"kind": 0,
"flags": {},
"children": [
{
"id": 1,
"name": "\"promise-object\"",
"kind": 1,
"kindString": "External module",
"flags": {
"isExported": true
},
"originalName": "%BASE%/promise-object/promise-object.ts",
"children": [
{
"id": 2,
"name": "x",
"kind": 32,
"kindString": "Variable",
"flags": {
"isLet": true
},
"sources": [
{
"fileName": "promise-object.ts",
"line": 1,
"character": 5
}
],
"type": {
"type": "intrinsic",
"name": "object"
}
},
{
"id": 3,
"name": "y",
"kind": 32,
"kindString": "Variable",
"flags": {
"isLet": true
},
"sources": [
{
"fileName": "promise-object.ts",
"line": 2,
"character": 5
}
],
"type": {
"type": "reference",
"name": "Promise",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
}
]
}
},
{
"id": 4,
"name": "z",
"kind": 32,
"flags": {
"isLet": true
},
"sources": [
{
"fileName": "%BASE%/promise-object/promise-object.ts",
"line": 3,
"character": 5
}
],
"type": {
"type": "reference",
"name": "Promise",
"typeArguments": [
{
"type": "intrinsic",
"name": "object"
}
]
}
}
],
"groups": [
{
"title": "Variables",
"kind": 32,
"children": [
2,
3,
4
]
}
],
"sources": [
{
"fileName": "promise-object.ts",
"line": 1,
"character": 0
}
]
}
],
"groups": [
{
"title": "External modules",
"kind": 1,
"children": [
1
]
}
]
}

0 comments on commit a4669a7

Please sign in to comment.