46 lines
1.7 KiB
Plaintext
46 lines
1.7 KiB
Plaintext
=== tests/cases/compiler/classSideInheritance2.ts ===
|
|
interface IText {
|
|
>IText : Symbol(IText, Decl(classSideInheritance2.ts, 0, 0))
|
|
|
|
foo: number;
|
|
>foo : Symbol(foo, Decl(classSideInheritance2.ts, 0, 17))
|
|
}
|
|
|
|
interface TextSpan {}
|
|
>TextSpan : Symbol(TextSpan, Decl(classSideInheritance2.ts, 2, 1))
|
|
|
|
class SubText extends TextBase {
|
|
>SubText : Symbol(SubText, Decl(classSideInheritance2.ts, 4, 21))
|
|
>TextBase : Symbol(TextBase, Decl(classSideInheritance2.ts, 11, 1))
|
|
|
|
constructor(text: IText, span: TextSpan) {
|
|
>text : Symbol(text, Decl(classSideInheritance2.ts, 8, 20))
|
|
>IText : Symbol(IText, Decl(classSideInheritance2.ts, 0, 0))
|
|
>span : Symbol(span, Decl(classSideInheritance2.ts, 8, 32))
|
|
>TextSpan : Symbol(TextSpan, Decl(classSideInheritance2.ts, 2, 1))
|
|
|
|
super();
|
|
>super : Symbol(TextBase, Decl(classSideInheritance2.ts, 11, 1))
|
|
}
|
|
}
|
|
|
|
class TextBase implements IText {
|
|
>TextBase : Symbol(TextBase, Decl(classSideInheritance2.ts, 11, 1))
|
|
>IText : Symbol(IText, Decl(classSideInheritance2.ts, 0, 0))
|
|
|
|
public foo: number;
|
|
>foo : Symbol(foo, Decl(classSideInheritance2.ts, 13, 33))
|
|
|
|
public subText(span: TextSpan): IText {
|
|
>subText : Symbol(subText, Decl(classSideInheritance2.ts, 14, 27))
|
|
>span : Symbol(span, Decl(classSideInheritance2.ts, 15, 23))
|
|
>TextSpan : Symbol(TextSpan, Decl(classSideInheritance2.ts, 2, 1))
|
|
>IText : Symbol(IText, Decl(classSideInheritance2.ts, 0, 0))
|
|
|
|
return new SubText(this, span);
|
|
>SubText : Symbol(SubText, Decl(classSideInheritance2.ts, 4, 21))
|
|
>this : Symbol(TextBase, Decl(classSideInheritance2.ts, 11, 1))
|
|
>span : Symbol(span, Decl(classSideInheritance2.ts, 15, 23))
|
|
}
|
|
}
|