52 lines
2 KiB
Text
52 lines
2 KiB
Text
=== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/derivedTypeDoesNotRequireExtendsClause.ts ===
|
|
class Base {
|
|
>Base : Symbol(Base, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 0, 0))
|
|
|
|
foo: string;
|
|
>foo : Symbol(foo, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 0, 12))
|
|
}
|
|
|
|
class Derived {
|
|
>Derived : Symbol(Derived, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 2, 1))
|
|
|
|
foo: string;
|
|
>foo : Symbol(foo, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 4, 15))
|
|
|
|
bar: number;
|
|
>bar : Symbol(bar, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 5, 16))
|
|
}
|
|
|
|
class Derived2 extends Base {
|
|
>Derived2 : Symbol(Derived2, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 7, 1))
|
|
>Base : Symbol(Base, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 0, 0))
|
|
|
|
bar: string;
|
|
>bar : Symbol(bar, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 9, 29))
|
|
}
|
|
|
|
var b: Base;
|
|
>b : Symbol(b, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 13, 3))
|
|
>Base : Symbol(Base, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 0, 0))
|
|
|
|
var d1: Derived;
|
|
>d1 : Symbol(d1, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 14, 3))
|
|
>Derived : Symbol(Derived, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 2, 1))
|
|
|
|
var d2: Derived2;
|
|
>d2 : Symbol(d2, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 15, 3))
|
|
>Derived2 : Symbol(Derived2, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 7, 1))
|
|
|
|
b = d1;
|
|
>b : Symbol(b, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 13, 3))
|
|
>d1 : Symbol(d1, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 14, 3))
|
|
|
|
b = d2;
|
|
>b : Symbol(b, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 13, 3))
|
|
>d2 : Symbol(d2, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 15, 3))
|
|
|
|
var r: Base[] = [d1, d2];
|
|
>r : Symbol(r, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 19, 3))
|
|
>Base : Symbol(Base, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 0, 0))
|
|
>d1 : Symbol(d1, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 14, 3))
|
|
>d2 : Symbol(d2, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 15, 3))
|
|
|