1
1
=== tests/cases/conformance/salsa/module.js ===
2
2
var Outer = Outer || {};
3
- >Outer : typeof __object
4
- >Outer || {} : typeof __object
5
- >Outer : typeof __object
6
- >{} : typeof __object
3
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
4
+ >Outer || {} : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
5
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
6
+ >{} : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
7
7
8
8
Outer.app = Outer.app || {};
9
- >Outer.app = Outer.app || {} : typeof __object
10
- >Outer.app : typeof __object
11
- >Outer : typeof __object
12
- >app : typeof __object
13
- >Outer.app || {} : typeof __object
14
- >Outer.app : typeof __object
15
- >Outer : typeof __object
16
- >app : typeof __object
17
- >{} : typeof __object
9
+ >Outer.app = Outer.app || {} : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
10
+ >Outer.app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
11
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
12
+ >app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
13
+ >Outer.app || {} : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
14
+ >Outer.app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
15
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
16
+ >app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
17
+ >{} : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
18
18
19
19
=== tests/cases/conformance/salsa/someview.js ===
20
20
Outer.app.SomeView = (function () {
21
21
>Outer.app.SomeView = (function () { var SomeView = function() { var me = this; } return SomeView;})() : () => void
22
22
>Outer.app.SomeView : () => void
23
- >Outer.app : typeof __object
24
- >Outer : typeof __object
25
- >app : typeof __object
23
+ >Outer.app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
24
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
25
+ >app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
26
26
>SomeView : () => void
27
27
>(function () { var SomeView = function() { var me = this; } return SomeView;})() : () => void
28
28
>(function () { var SomeView = function() { var me = this; } return SomeView;}) : () => () => void
@@ -43,9 +43,9 @@ Outer.app.SomeView = (function () {
43
43
Outer.app.Inner = class {
44
44
>Outer.app.Inner = class { constructor() { /** @type {number} */ this.y = 12; }} : typeof Inner
45
45
>Outer.app.Inner : typeof Inner
46
- >Outer.app : typeof __object
47
- >Outer : typeof __object
48
- >app : typeof __object
46
+ >Outer.app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
47
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
48
+ >app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
49
49
>Inner : typeof Inner
50
50
>class { constructor() { /** @type {number} */ this.y = 12; }} : typeof Inner
51
51
@@ -63,9 +63,9 @@ var example = new Outer.app.Inner();
63
63
>example : Inner
64
64
>new Outer.app.Inner() : Inner
65
65
>Outer.app.Inner : typeof Inner
66
- >Outer.app : typeof __object
67
- >Outer : typeof __object
68
- >app : typeof __object
66
+ >Outer.app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
67
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
68
+ >app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
69
69
>Inner : typeof Inner
70
70
71
71
example.y;
@@ -77,9 +77,9 @@ example.y;
77
77
Outer.app.statische = function (k) {
78
78
>Outer.app.statische = function (k) { return k ** k;} : (k: number) => number
79
79
>Outer.app.statische : (k: number) => number
80
- >Outer.app : typeof __object
81
- >Outer : typeof __object
82
- >app : typeof __object
80
+ >Outer.app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
81
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
82
+ >app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
83
83
>statische : (k: number) => number
84
84
>function (k) { return k ** k;} : (k: number) => number
85
85
>k : number
@@ -93,9 +93,9 @@ Outer.app.statische = function (k) {
93
93
Outer.app.Application = (function () {
94
94
>Outer.app.Application = (function () { /** * Application main class. * Will be instantiated & initialized by HTML page */ var Application = function () { var me = this; me.view = new Outer.app.SomeView(); }; return Application;})() : () => void
95
95
>Outer.app.Application : () => void
96
- >Outer.app : typeof __object
97
- >Outer : typeof __object
98
- >app : typeof __object
96
+ >Outer.app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
97
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
98
+ >app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
99
99
>Application : () => void
100
100
>(function () { /** * Application main class. * Will be instantiated & initialized by HTML page */ var Application = function () { var me = this; me.view = new Outer.app.SomeView(); }; return Application;})() : () => void
101
101
>(function () { /** * Application main class. * Will be instantiated & initialized by HTML page */ var Application = function () { var me = this; me.view = new Outer.app.SomeView(); }; return Application;}) : () => () => void
@@ -120,9 +120,9 @@ Outer.app.Application = (function () {
120
120
>view : any
121
121
>new Outer.app.SomeView() : any
122
122
>Outer.app.SomeView : () => void
123
- >Outer.app : typeof __object
124
- >Outer : typeof __object
125
- >app : typeof __object
123
+ >Outer.app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
124
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
125
+ >app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
126
126
>SomeView : () => void
127
127
128
128
};
@@ -135,18 +135,18 @@ var app = new Outer.app.Application();
135
135
>app : any
136
136
>new Outer.app.Application() : any
137
137
>Outer.app.Application : () => void
138
- >Outer.app : typeof __object
139
- >Outer : typeof __object
140
- >app : typeof __object
138
+ >Outer.app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
139
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
140
+ >app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
141
141
>Application : () => void
142
142
143
143
var inner = new Outer.app.Inner();
144
144
>inner : Inner
145
145
>new Outer.app.Inner() : Inner
146
146
>Outer.app.Inner : typeof Inner
147
- >Outer.app : typeof __object
148
- >Outer : typeof __object
149
- >app : typeof __object
147
+ >Outer.app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
148
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
149
+ >app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
150
150
>Inner : typeof Inner
151
151
152
152
inner.y;
166
166
Outer.app.statische(101); // Infinity, duh
167
167
>Outer.app.statische(101) : number
168
168
>Outer.app.statische : (k: number) => number
169
- >Outer.app : typeof __object
170
- >Outer : typeof __object
171
- >app : typeof __object
169
+ >Outer.app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
170
+ >Outer : { [x: string]: any; app: { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }; }
171
+ >app : { [x: string]: any; SomeView: () => void; Inner: typeof Inner; statische(k: number): number; Application: () => void; }
172
172
>statische : (k: number) => number
173
173
>101 : 101
174
174
0 commit comments