TypeScript/tests/baselines/reference/classSideInheritance2.types

48 lines
1.9 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/classSideInheritance2.ts ===
interface IText {
2015-04-13 23:01:57 +02:00
>IText : IText, Symbol(IText, Decl(classSideInheritance2.ts, 0, 0))
2014-08-15 23:33:16 +02:00
foo: number;
2015-04-13 23:01:57 +02:00
>foo : number, Symbol(foo, Decl(classSideInheritance2.ts, 0, 17))
2014-08-15 23:33:16 +02:00
}
interface TextSpan {}
2015-04-13 23:01:57 +02:00
>TextSpan : TextSpan, Symbol(TextSpan, Decl(classSideInheritance2.ts, 2, 1))
2014-08-15 23:33:16 +02:00
class SubText extends TextBase {
2015-04-13 23:01:57 +02:00
>SubText : SubText, Symbol(SubText, Decl(classSideInheritance2.ts, 4, 21))
>TextBase : TextBase, Symbol(TextBase, Decl(classSideInheritance2.ts, 11, 1))
2014-08-15 23:33:16 +02:00
constructor(text: IText, span: TextSpan) {
2015-04-13 23:01:57 +02:00
>text : IText, Symbol(text, Decl(classSideInheritance2.ts, 8, 20))
>IText : IText, Symbol(IText, Decl(classSideInheritance2.ts, 0, 0))
>span : TextSpan, Symbol(span, Decl(classSideInheritance2.ts, 8, 32))
>TextSpan : TextSpan, Symbol(TextSpan, Decl(classSideInheritance2.ts, 2, 1))
2014-08-15 23:33:16 +02:00
super();
>super() : void
2015-04-13 23:01:57 +02:00
>super : typeof TextBase, Symbol(TextBase, Decl(classSideInheritance2.ts, 11, 1))
2014-08-15 23:33:16 +02:00
}
}
class TextBase implements IText {
2015-04-13 23:01:57 +02:00
>TextBase : TextBase, Symbol(TextBase, Decl(classSideInheritance2.ts, 11, 1))
>IText : IText, Symbol(IText, Decl(classSideInheritance2.ts, 0, 0))
2014-08-15 23:33:16 +02:00
public foo: number;
2015-04-13 23:01:57 +02:00
>foo : number, Symbol(foo, Decl(classSideInheritance2.ts, 13, 33))
2014-08-15 23:33:16 +02:00
public subText(span: TextSpan): IText {
2015-04-13 23:01:57 +02:00
>subText : (span: TextSpan) => IText, Symbol(subText, Decl(classSideInheritance2.ts, 14, 27))
>span : TextSpan, Symbol(span, Decl(classSideInheritance2.ts, 15, 23))
>TextSpan : TextSpan, Symbol(TextSpan, Decl(classSideInheritance2.ts, 2, 1))
>IText : IText, Symbol(IText, Decl(classSideInheritance2.ts, 0, 0))
2014-08-15 23:33:16 +02:00
return new SubText(this, span);
>new SubText(this, span) : SubText
2015-04-13 23:01:57 +02:00
>SubText : typeof SubText, Symbol(SubText, Decl(classSideInheritance2.ts, 4, 21))
>this : TextBase, Symbol(TextBase, Decl(classSideInheritance2.ts, 11, 1))
>span : TextSpan, Symbol(span, Decl(classSideInheritance2.ts, 15, 23))
2014-08-15 23:33:16 +02:00
}
}