55 lines
949 B
TypeScript
55 lines
949 B
TypeScript
var x1: this;
|
|
var x2: { a: this };
|
|
var x3: this[];
|
|
|
|
function f1(x: this): this {
|
|
var y: this;
|
|
return this;
|
|
}
|
|
|
|
interface I1 {
|
|
a: { x: this };
|
|
b: { (): this };
|
|
c: { new (): this };
|
|
d: { [x: string]: this };
|
|
e: { f(x: this): this };
|
|
}
|
|
|
|
class C1 {
|
|
a: { x: this };
|
|
b: { (): this };
|
|
c: { new (): this };
|
|
d: { [x: string]: this };
|
|
e: { f(x: this): this };
|
|
}
|
|
|
|
class C2 {
|
|
static x: this;
|
|
static y = <this>undefined;
|
|
static foo(x: this): this {
|
|
return undefined;
|
|
}
|
|
}
|
|
|
|
namespace N1 {
|
|
export var x: this;
|
|
export var y = this;
|
|
}
|
|
|
|
class C3 {
|
|
x1 = {
|
|
g(x: this): this {
|
|
return undefined;
|
|
}
|
|
}
|
|
f() {
|
|
function g(x: this): this {
|
|
return undefined;
|
|
}
|
|
let x2 = {
|
|
h(x: this): this {
|
|
return undefined;
|
|
}
|
|
}
|
|
}
|
|
}
|