2016-06-13 21:08:31 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
// @Filename: foo.js
|
|
|
|
/////** @typedef {(number|string)} NumberLike */
|
|
|
|
/////** @typedef {(string|number)} */
|
|
|
|
////const x = 0;
|
|
|
|
|
2016-10-11 16:48:28 +02:00
|
|
|
verify.navigationTree({
|
|
|
|
"text": "<global>",
|
|
|
|
"kind": "script",
|
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "NumberLike",
|
|
|
|
"kind": "type"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "const"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "type"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
2016-06-13 21:08:31 +02:00
|
|
|
verify.navigationBar([
|
|
|
|
{
|
2016-06-16 22:20:12 +02:00
|
|
|
"text": "<global>",
|
2016-07-26 19:41:20 +02:00
|
|
|
"kind": "script",
|
2016-06-16 22:20:12 +02:00
|
|
|
"childItems": [
|
|
|
|
{
|
|
|
|
"text": "NumberLike",
|
|
|
|
"kind": "type"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "const"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
|
|
|
"kind": "type"
|
|
|
|
}
|
|
|
|
]
|
2016-06-13 21:08:31 +02:00
|
|
|
},
|
|
|
|
{
|
2016-06-16 22:20:12 +02:00
|
|
|
"text": "NumberLike",
|
|
|
|
"kind": "type",
|
|
|
|
"indent": 1,
|
2016-06-13 21:08:31 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "x",
|
2016-06-16 22:20:12 +02:00
|
|
|
"kind": "type",
|
|
|
|
"indent": 1
|
2016-06-13 21:08:31 +02:00
|
|
|
}
|
|
|
|
]);
|