TypeScript/tests/baselines/reference/staticFactory1.symbols
2016-03-16 13:45:55 -07:00

34 lines
1.1 KiB
Plaintext

=== 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))