1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
=== tests/cases/conformance/types/thisType/contextualThisType.ts ===
interface X {
>X : Symbol(X, Decl(contextualThisType.ts, 0, 0))
a: (p: this) => this;
>a : Symbol(X.a, Decl(contextualThisType.ts, 0, 13))
>p : Symbol(p, Decl(contextualThisType.ts, 1, 8))
}
interface Y extends X {
>Y : Symbol(Y, Decl(contextualThisType.ts, 2, 1))
>X : Symbol(X, Decl(contextualThisType.ts, 0, 0))
}
var x: Y = {
>x : Symbol(x, Decl(contextualThisType.ts, 7, 3))
>Y : Symbol(Y, Decl(contextualThisType.ts, 2, 1))
a(p) {
>a : Symbol(a, Decl(contextualThisType.ts, 7, 12))
>p : Symbol(p, Decl(contextualThisType.ts, 8, 6))
return p;
>p : Symbol(p, Decl(contextualThisType.ts, 8, 6))
}
}
var y = x.a(x);
>y : Symbol(y, Decl(contextualThisType.ts, 13, 3))
>x.a : Symbol(X.a, Decl(contextualThisType.ts, 0, 13))
>x : Symbol(x, Decl(contextualThisType.ts, 7, 3))
>a : Symbol(X.a, Decl(contextualThisType.ts, 0, 13))
>x : Symbol(x, Decl(contextualThisType.ts, 7, 3))
|