Skip to content

Commit b3c27eb

Browse files
Add test from the other PR
Co-authored-by: Oleksandr T <[email protected]>
1 parent a50fd5f commit b3c27eb

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
=== /test.js ===
2+
// class Foo {
3+
// constructor() {
4+
// this.prop = { };
5+
// }
6+
//
7+
// declare prop: string;
8+
// method() {
9+
// this.prop.foo
10+
// ^^^
11+
// | ----------------------------------------------------------------------
12+
// | any
13+
// | ----------------------------------------------------------------------
14+
// }
15+
// }
16+
17+
[
18+
{
19+
"marker": {
20+
"fileName": "/test.js",
21+
"position": 126,
22+
"name": ""
23+
},
24+
"item": {
25+
"kind": "",
26+
"kindModifiers": "",
27+
"textSpan": {
28+
"start": 123,
29+
"length": 3
30+
},
31+
"displayParts": [
32+
{
33+
"text": "any",
34+
"kind": "keyword"
35+
}
36+
]
37+
}
38+
}
39+
]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
// @noLib: true
4+
// @allowJs: true
5+
// @filename: /test.js
6+
////class Foo {
7+
//// constructor() {
8+
//// this.prop = { };
9+
//// }
10+
////
11+
//// declare prop: string;
12+
//// method() {
13+
//// this.prop.foo/**/
14+
//// }
15+
////}
16+
17+
verify.baselineQuickInfo();

0 commit comments

Comments
 (0)