TypeScript/tests/baselines/reference/missingSelf.types
Vladimir Matveev f06423bffc Revert "add part of test baselines"
This reverts commit 502b2ba321.
2016-03-09 17:08:26 -08:00

53 lines
973 B
Text

=== tests/cases/compiler/missingSelf.ts ===
class CalcButton
>CalcButton : CalcButton
{
public a() { this.onClick(); }
>a : () => void
>this.onClick() : void
>this.onClick : () => void
>this : this
>onClick : () => void
public onClick() { }
>onClick : () => void
}
class CalcButton2
>CalcButton2 : CalcButton2
{
public b() { () => this.onClick(); }
>b : () => void
>() => this.onClick() : () => void
>this.onClick() : void
>this.onClick : () => void
>this : this
>onClick : () => void
public onClick() { }
>onClick : () => void
}
var c = new CalcButton();
>c : CalcButton
>new CalcButton() : CalcButton
>CalcButton : typeof CalcButton
c.a();
>c.a() : void
>c.a : () => void
>c : CalcButton
>a : () => void
var c2 = new CalcButton2();
>c2 : CalcButton2
>new CalcButton2() : CalcButton2
>CalcButton2 : typeof CalcButton2
c2.b();
>c2.b() : void
>c2.b : () => void
>c2 : CalcButton2
>b : () => void