Update test

This commit is contained in:
Anders Hejlsberg 2017-02-24 19:52:50 -08:00
parent 20b4523d0f
commit 6fdd929a66
4 changed files with 8 additions and 13 deletions

View File

@ -35,7 +35,6 @@ extend2({
init() {
this // this: containing object literal type
this.mine
//this.willDestroy
},
mine: 13,
foo() {
@ -71,7 +70,6 @@ extend2({
init: function () {
this; // this: containing object literal type
this.mine;
//this.willDestroy
},
mine: 13,
foo: function () {

View File

@ -95,13 +95,12 @@ extend2({
this.mine
>this : Symbol(IndexedWithoutThis, Decl(thisTypeInFunctions2.ts, 5, 1))
//this.willDestroy
},
mine: 13,
>mine : Symbol(mine, Decl(thisTypeInFunctions2.ts, 37, 6))
>mine : Symbol(mine, Decl(thisTypeInFunctions2.ts, 36, 6))
foo() {
>foo : Symbol(foo, Decl(thisTypeInFunctions2.ts, 38, 13))
>foo : Symbol(foo, Decl(thisTypeInFunctions2.ts, 37, 13))
this // this: containing object literal type
>this : Symbol(IndexedWithoutThis, Decl(thisTypeInFunctions2.ts, 5, 1))
@ -115,12 +114,12 @@ simple({
>simple : Symbol(simple, Decl(thisTypeInFunctions2.ts, 17, 57))
foo(n) {
>foo : Symbol(foo, Decl(thisTypeInFunctions2.ts, 45, 8))
>n : Symbol(n, Decl(thisTypeInFunctions2.ts, 46, 8))
>foo : Symbol(foo, Decl(thisTypeInFunctions2.ts, 44, 8))
>n : Symbol(n, Decl(thisTypeInFunctions2.ts, 45, 8))
return n.length + this.bar();
>n.length : Symbol(String.length, Decl(lib.d.ts, --, --))
>n : Symbol(n, Decl(thisTypeInFunctions2.ts, 46, 8))
>n : Symbol(n, Decl(thisTypeInFunctions2.ts, 45, 8))
>length : Symbol(String.length, Decl(lib.d.ts, --, --))
>this.bar : Symbol(SimpleInterface.bar, Decl(thisTypeInFunctions2.ts, 13, 19))
>this : Symbol(SimpleInterface, Decl(thisTypeInFunctions2.ts, 11, 1))
@ -128,7 +127,7 @@ simple({
},
bar() {
>bar : Symbol(bar, Decl(thisTypeInFunctions2.ts, 48, 6))
>bar : Symbol(bar, Decl(thisTypeInFunctions2.ts, 47, 6))
return 14;
}

View File

@ -92,9 +92,9 @@ extend1({
}
});
extend2({
>extend2({ init() { this // this: containing object literal type this.mine //this.willDestroy }, mine: 13, foo() { this // this: containing object literal type this.mine }}) : void
>extend2({ init() { this // this: containing object literal type this.mine }, mine: 13, foo() { this // this: containing object literal type this.mine }}) : void
>extend2 : (args: IndexedWithoutThis) => void
>{ init() { this // this: containing object literal type this.mine //this.willDestroy }, mine: 13, foo() { this // this: containing object literal type this.mine }} : { init(): void; mine: number; foo(): void; }
>{ init() { this // this: containing object literal type this.mine }, mine: 13, foo() { this // this: containing object literal type this.mine }} : { init(): void; mine: number; foo(): void; }
init() {
>init : () => void
@ -107,7 +107,6 @@ extend2({
>this : IndexedWithoutThis
>mine : any
//this.willDestroy
},
mine: 13,
>mine : number

View File

@ -34,7 +34,6 @@ extend2({
init() {
this // this: containing object literal type
this.mine
//this.willDestroy
},
mine: 13,
foo() {