@@ -25,16 +25,19 @@ class C extends A {
25
25
declare function isA(p1: any): p1 is A;
26
26
>isA : Symbol(isA, Decl(typeGuardFunction.ts, 11, 1))
27
27
>p1 : Symbol(p1, Decl(typeGuardFunction.ts, 13, 21))
28
+ >p1 : Symbol(p1, Decl(typeGuardFunction.ts, 13, 21))
28
29
>A : Symbol(A, Decl(typeGuardFunction.ts, 0, 0))
29
30
30
31
declare function isB(p1: any): p1 is B;
31
32
>isB : Symbol(isB, Decl(typeGuardFunction.ts, 13, 39))
32
33
>p1 : Symbol(p1, Decl(typeGuardFunction.ts, 14, 21))
34
+ >p1 : Symbol(p1, Decl(typeGuardFunction.ts, 14, 21))
33
35
>B : Symbol(B, Decl(typeGuardFunction.ts, 3, 1))
34
36
35
37
declare function isC(p1: any): p1 is C;
36
38
>isC : Symbol(isC, Decl(typeGuardFunction.ts, 14, 39))
37
39
>p1 : Symbol(p1, Decl(typeGuardFunction.ts, 15, 21))
40
+ >p1 : Symbol(p1, Decl(typeGuardFunction.ts, 15, 21))
38
41
>C : Symbol(C, Decl(typeGuardFunction.ts, 7, 1))
39
42
40
43
declare function retC(): C;
@@ -98,6 +101,7 @@ interface I1 {
98
101
(p1: A): p1 is C;
99
102
>p1 : Symbol(p1, Decl(typeGuardFunction.ts, 41, 5))
100
103
>A : Symbol(A, Decl(typeGuardFunction.ts, 0, 0))
104
+ >p1 : Symbol(p1, Decl(typeGuardFunction.ts, 41, 5))
101
105
>C : Symbol(C, Decl(typeGuardFunction.ts, 7, 1))
102
106
}
103
107
@@ -107,6 +111,7 @@ declare function isC_multipleParams(p1, p2): p1 is C;
107
111
>isC_multipleParams : Symbol(isC_multipleParams, Decl(typeGuardFunction.ts, 42, 1))
108
112
>p1 : Symbol(p1, Decl(typeGuardFunction.ts, 46, 36))
109
113
>p2 : Symbol(p2, Decl(typeGuardFunction.ts, 46, 39))
114
+ >p1 : Symbol(p1, Decl(typeGuardFunction.ts, 46, 36))
110
115
>C : Symbol(C, Decl(typeGuardFunction.ts, 7, 1))
111
116
112
117
if (isC_multipleParams(a, 0)) {
@@ -127,6 +132,7 @@ var obj: {
127
132
>func1 : Symbol(func1, Decl(typeGuardFunction.ts, 52, 10))
128
133
>p1 : Symbol(p1, Decl(typeGuardFunction.ts, 53, 10))
129
134
>A : Symbol(A, Decl(typeGuardFunction.ts, 0, 0))
135
+ >p1 : Symbol(p1, Decl(typeGuardFunction.ts, 53, 10))
130
136
>C : Symbol(C, Decl(typeGuardFunction.ts, 7, 1))
131
137
}
132
138
class D {
@@ -136,6 +142,7 @@ class D {
136
142
>method1 : Symbol(method1, Decl(typeGuardFunction.ts, 55, 9))
137
143
>p1 : Symbol(p1, Decl(typeGuardFunction.ts, 56, 12))
138
144
>A : Symbol(A, Decl(typeGuardFunction.ts, 0, 0))
145
+ >p1 : Symbol(p1, Decl(typeGuardFunction.ts, 56, 12))
139
146
>C : Symbol(C, Decl(typeGuardFunction.ts, 7, 1))
140
147
141
148
return true;
@@ -147,6 +154,7 @@ let f1 = (p1: A): p1 is C => false;
147
154
>f1 : Symbol(f1, Decl(typeGuardFunction.ts, 62, 3))
148
155
>p1 : Symbol(p1, Decl(typeGuardFunction.ts, 62, 10))
149
156
>A : Symbol(A, Decl(typeGuardFunction.ts, 0, 0))
157
+ >p1 : Symbol(p1, Decl(typeGuardFunction.ts, 62, 10))
150
158
>C : Symbol(C, Decl(typeGuardFunction.ts, 7, 1))
151
159
152
160
// Function type
@@ -155,13 +163,15 @@ declare function f2(p1: (p1: A) => p1 is C);
155
163
>p1 : Symbol(p1, Decl(typeGuardFunction.ts, 65, 20))
156
164
>p1 : Symbol(p1, Decl(typeGuardFunction.ts, 65, 25))
157
165
>A : Symbol(A, Decl(typeGuardFunction.ts, 0, 0))
166
+ >p1 : Symbol(p1, Decl(typeGuardFunction.ts, 65, 25))
158
167
>C : Symbol(C, Decl(typeGuardFunction.ts, 7, 1))
159
168
160
169
// Function expressions
161
170
f2(function(p1: A): p1 is C {
162
171
>f2 : Symbol(f2, Decl(typeGuardFunction.ts, 62, 35))
163
172
>p1 : Symbol(p1, Decl(typeGuardFunction.ts, 68, 12))
164
173
>A : Symbol(A, Decl(typeGuardFunction.ts, 0, 0))
174
+ >p1 : Symbol(p1, Decl(typeGuardFunction.ts, 68, 12))
165
175
>C : Symbol(C, Decl(typeGuardFunction.ts, 7, 1))
166
176
167
177
return true;
@@ -182,6 +192,7 @@ declare function acceptingTypeGuardFunction(p1: (item) => item is A);
182
192
>acceptingTypeGuardFunction : Symbol(acceptingTypeGuardFunction, Decl(typeGuardFunction.ts, 74, 25))
183
193
>p1 : Symbol(p1, Decl(typeGuardFunction.ts, 77, 44))
184
194
>item : Symbol(item, Decl(typeGuardFunction.ts, 77, 49))
195
+ >item : Symbol(item, Decl(typeGuardFunction.ts, 77, 49))
185
196
>A : Symbol(A, Decl(typeGuardFunction.ts, 0, 0))
186
197
187
198
acceptingTypeGuardFunction(isA);
0 commit comments