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
|
=== tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/staticFactory1.ts ===
class Base {
>Base : Symbol(Base, Decl(staticFactory1.ts, 0, 0))
foo() { return 1; }
>foo : Symbol(Base.foo, Decl(staticFactory1.ts, 0, 12))
static create() {
>create : Symbol(Base.create, Decl(staticFactory1.ts, 1, 23))
return new this();
>this : Symbol(Base, Decl(staticFactory1.ts, 0, 0))
}
}
class Derived extends Base {
>Derived : Symbol(Derived, Decl(staticFactory1.ts, 5, 1))
>Base : Symbol(Base, Decl(staticFactory1.ts, 0, 0))
foo() { return 2; }
>foo : Symbol(Derived.foo, Decl(staticFactory1.ts, 7, 28))
}
var d = Derived.create();
>d : Symbol(d, Decl(staticFactory1.ts, 10, 3))
>Derived.create : Symbol(Base.create, Decl(staticFactory1.ts, 1, 23))
>Derived : Symbol(Derived, Decl(staticFactory1.ts, 5, 1))
>create : Symbol(Base.create, Decl(staticFactory1.ts, 1, 23))
d.foo();
>d.foo : Symbol(Base.foo, Decl(staticFactory1.ts, 0, 12))
>d : Symbol(d, Decl(staticFactory1.ts, 10, 3))
>foo : Symbol(Base.foo, Decl(staticFactory1.ts, 0, 12))
|