Accept new baselines

This commit is contained in:
Anders Hejlsberg
2016-10-13 06:31:28 -07:00
parent 7dd64d3ea2
commit 57a9a6344a
7 changed files with 18 additions and 18 deletions

View File

@@ -23,7 +23,7 @@ function foo(a: string): string | number {
return a.length;
>a.length : number
>a : string
>a : "hello"
>length : number
}

View File

@@ -129,7 +129,7 @@ function f4(x: 0 | 1 | true | string) {
>"def" : "def"
x;
>x : string
>x : "abc" | "def"
break;
case null:
@@ -163,7 +163,7 @@ function f5(x: string | number | boolean) {
>"abc" : "abc"
x;
>x : string
>x : "abc"
break;
case 0:
@@ -173,7 +173,7 @@ function f5(x: string | number | boolean) {
>1 : 1
x;
>x : number
>x : 0 | 1
break;
case true:
@@ -190,7 +190,7 @@ function f5(x: string | number | boolean) {
>123 : 123
x;
>x : string | number
>x : "hello" | 123
break;
default:

View File

@@ -10,7 +10,7 @@ if (i == 10) {
i++;
>i++ : number
>i : number
>i : 10
} else
{
@@ -22,7 +22,7 @@ if (i == 10)
{
i++;
>i++ : number
>i : number
>i : 10
}
else if (i == 20) {
>i == 20 : boolean
@@ -31,7 +31,7 @@ else if (i == 20) {
i--;
>i-- : number
>i : number
>i : 20
} else if (i == 30) {
>i == 30 : boolean

View File

@@ -11,7 +11,7 @@ switch (x) {
x++;
>x++ : number
>x : number
>x : 5
break;
case 10:
@@ -19,7 +19,7 @@ switch (x) {
{
x--;
>x-- : number
>x : number
>x : 10
break;
}
@@ -39,7 +39,7 @@ switch (x)
x++;
>x++ : number
>x : number
>x : 5
break;
case 10:
@@ -47,7 +47,7 @@ switch (x)
{
x--;
>x-- : number
>x : number
>x : 10
break;
}

View File

@@ -10,7 +10,7 @@ while (a == 10) {
a++;
>a++ : number
>a : number
>a : 10
}
while (a == 10)
>a == 10 : boolean
@@ -19,5 +19,5 @@ while (a == 10)
{
a++;
>a++ : number
>a : number
>a : 10
}

View File

@@ -19,7 +19,7 @@ if (x === "foo") {
let a = x;
>a : string
>x : string
>x : "foo"
}
else if (x !== "bar") {
>x !== "bar" : boolean
@@ -35,7 +35,7 @@ else if (x !== "bar") {
else {
let c = x;
>c : string
>x : string
>x : "bar"
let d = y;
>d : string
@@ -43,7 +43,7 @@ else {
let e: (typeof x) | (typeof y) = c || d;
>e : string
>x : string
>x : "bar"
>y : string
>c || d : string
>c : string

View File

@@ -25,7 +25,7 @@ switch (y) {
>'a' : "a"
throw y;
>y : string
>y : "a"
default:
throw y;