Accept new baselines

This commit is contained in:
Anders Hejlsberg 2018-04-20 09:56:07 -07:00
parent eb7bbfb28e
commit b38e42e41e
12 changed files with 24 additions and 24 deletions

View File

@ -9,8 +9,8 @@ var a: any;
>a : any
var v = {
>v : { [x: string]: () => void; [x: number]: () => void; [""](): void; [0](): void; }
>{ [s]() { }, [n]() { }, [s + s]() { }, [s + n]() { }, [+s]() { }, [""]() { }, [0]() { }, [a]() { }, [<any>true]() { }, [`hello bye`]() { }, [`hello ${a} bye`]() { }} : { [x: string]: () => void; [x: number]: () => void; [""](): void; [0](): void; }
>v : { [x: string]: () => void; [x: number]: () => void; [""](): void; [0](): void; [`hello bye`](): void; }
>{ [s]() { }, [n]() { }, [s + s]() { }, [s + n]() { }, [+s]() { }, [""]() { }, [0]() { }, [a]() { }, [<any>true]() { }, [`hello bye`]() { }, [`hello ${a} bye`]() { }} : { [x: string]: () => void; [x: number]: () => void; [""](): void; [0](): void; [`hello bye`](): void; }
[s]() { },
>[s] : () => void

View File

@ -9,8 +9,8 @@ var a: any;
>a : any
var v = {
>v : { [x: string]: () => void; [x: number]: () => void; [""](): void; [0](): void; }
>{ [s]() { }, [n]() { }, [s + s]() { }, [s + n]() { }, [+s]() { }, [""]() { }, [0]() { }, [a]() { }, [<any>true]() { }, [`hello bye`]() { }, [`hello ${a} bye`]() { }} : { [x: string]: () => void; [x: number]: () => void; [""](): void; [0](): void; }
>v : { [x: string]: () => void; [x: number]: () => void; [""](): void; [0](): void; [`hello bye`](): void; }
>{ [s]() { }, [n]() { }, [s + s]() { }, [s + n]() { }, [+s]() { }, [""]() { }, [0]() { }, [a]() { }, [<any>true]() { }, [`hello bye`]() { }, [`hello ${a} bye`]() { }} : { [x: string]: () => void; [x: number]: () => void; [""](): void; [0](): void; [`hello bye`](): void; }
[s]() { },
>[s] : () => void

View File

@ -12,8 +12,8 @@ class C extends Base {
>super : typeof Base
var obj = {
>obj : { [x: string]: () => void; }
>{ [(super(), "prop")]() { } } : { [x: string]: () => void; }
>obj : { [(super(), "prop")](): void; }
>{ [(super(), "prop")]() { } } : { [(super(), "prop")](): void; }
[(super(), "prop")]() { }
>[(super(), "prop")] : () => void

View File

@ -12,8 +12,8 @@ class C extends Base {
>super : typeof Base
var obj = {
>obj : { [x: string]: () => void; }
>{ [(super(), "prop")]() { } } : { [x: string]: () => void; }
>obj : { [(super(), "prop")](): void; }
>{ [(super(), "prop")]() { } } : { [(super(), "prop")](): void; }
[(super(), "prop")]() { }
>[(super(), "prop")] : () => void

View File

@ -15,8 +15,8 @@ class C extends Base {
>() => { var obj = { // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } }; } : () => void
var obj = {
>obj : { [x: string]: () => void; }
>{ // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } } : { [x: string]: () => void; }
>obj : { [(super(), "prop")](): void; }
>{ // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } } : { [(super(), "prop")](): void; }
// Ideally, we would capture this. But the reference is
// illegal, and not capturing this is consistent with

View File

@ -15,8 +15,8 @@ class C extends Base {
>() => { var obj = { // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } }; } : () => void
var obj = {
>obj : { [x: string]: () => void; }
>{ // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } } : { [x: string]: () => void; }
>obj : { [(super(), "prop")](): void; }
>{ // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } } : { [(super(), "prop")](): void; }
// Ideally, we would capture this. But the reference is
// illegal, and not capturing this is consistent with

View File

@ -3,8 +3,8 @@ var b: boolean;
>b : boolean
var v = {
>v : { [x: string]: number; [x: number]: any; [true]: number; }
>{ [b]: 0, [true]: 1, [[]]: 0, [{}]: 0, [undefined]: undefined, [null]: null} : { [x: string]: number; [x: number]: null; [true]: number; }
>v : { [x: number]: any; }
>{ [b]: 0, [true]: 1, [[]]: 0, [{}]: 0, [undefined]: undefined, [null]: null} : { [x: number]: null; }
[b]: 0,
>[b] : number

View File

@ -3,8 +3,8 @@ var b: boolean;
>b : boolean
var v = {
>v : { [x: string]: number; [x: number]: any; [true]: number; }
>{ [b]: 0, [true]: 1, [[]]: 0, [{}]: 0, [undefined]: undefined, [null]: null} : { [x: string]: number; [x: number]: null; [true]: number; }
>v : { [x: number]: any; }
>{ [b]: 0, [true]: 1, [[]]: 0, [{}]: 0, [undefined]: undefined, [null]: null} : { [x: number]: null; }
[b]: 0,
>[b] : number

View File

@ -19,8 +19,8 @@ function f(x): any { }
>x : any
var v = {
>v : { [x: string]: number; [x: number]: number; [f(true)]: number; }
>{ [f("")]: 0, [f(0)]: 0, [f(true)]: 0} : { [x: string]: number; [x: number]: number; [f(true)]: number; }
>v : { [x: string]: number; [x: number]: number; }
>{ [f("")]: 0, [f(0)]: 0, [f(true)]: 0} : { [x: string]: number; [x: number]: number; }
[f("")]: 0,
>[f("")] : number

View File

@ -19,8 +19,8 @@ function f(x): any { }
>x : any
var v = {
>v : { [x: string]: number; [x: number]: number; [f(true)]: number; }
>{ [f("")]: 0, [f(0)]: 0, [f(true)]: 0} : { [x: string]: number; [x: number]: number; [f(true)]: number; }
>v : { [x: string]: number; [x: number]: number; }
>{ [f("")]: 0, [f(0)]: 0, [f(true)]: 0} : { [x: string]: number; [x: number]: number; }
[f("")]: 0,
>[f("")] : number

View File

@ -1,7 +1,7 @@
=== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName41.ts ===
var v = {
>v : { [x: string]: boolean; }
>{ [0 in []]: true} : { [x: string]: boolean; }
>v : {}
>{ [0 in []]: true} : {}
[0 in []]: true
>[0 in []] : boolean

View File

@ -4,8 +4,8 @@ var s = Symbol;
>Symbol : SymbolConstructor
var x = {
>x : { [x: string]: number | (() => void); }
>{ [s]: 0, [s]() { }, get [s]() { return 0; }} : { [x: string]: number | (() => void); }
>x : {}
>{ [s]: 0, [s]() { }, get [s]() { return 0; }} : {}
[s]: 0,
>[s] : number