|
| 1 | +=== tests/cases/conformance/types/thisType/thisTypeInTypePredicate.ts === |
| 2 | +declare function filter<S>(f: (this: void, x: any) => x is S): S[]; |
| 3 | +>filter : Symbol(filter, Decl(thisTypeInTypePredicate.ts, 0, 0)) |
| 4 | +>S : Symbol(S, Decl(thisTypeInTypePredicate.ts, 0, 24)) |
| 5 | +>f : Symbol(f, Decl(thisTypeInTypePredicate.ts, 0, 27)) |
| 6 | +>this : Symbol(this, Decl(thisTypeInTypePredicate.ts, 0, 31)) |
| 7 | +>x : Symbol(x, Decl(thisTypeInTypePredicate.ts, 0, 42)) |
| 8 | +>x : Symbol(x, Decl(thisTypeInTypePredicate.ts, 0, 42)) |
| 9 | +>S : Symbol(S, Decl(thisTypeInTypePredicate.ts, 0, 24)) |
| 10 | +>S : Symbol(S, Decl(thisTypeInTypePredicate.ts, 0, 24)) |
| 11 | + |
| 12 | +const numbers = filter<number>((x): x is number => 'number' == typeof x) |
| 13 | +>numbers : Symbol(numbers, Decl(thisTypeInTypePredicate.ts, 1, 5)) |
| 14 | +>filter : Symbol(filter, Decl(thisTypeInTypePredicate.ts, 0, 0)) |
| 15 | +>x : Symbol(x, Decl(thisTypeInTypePredicate.ts, 1, 32)) |
| 16 | +>x : Symbol(x, Decl(thisTypeInTypePredicate.ts, 1, 32)) |
| 17 | +>x : Symbol(x, Decl(thisTypeInTypePredicate.ts, 1, 32)) |
| 18 | + |
0 commit comments