Accept new baselines

This commit is contained in:
Anders Hejlsberg 2018-09-14 14:07:34 -07:00
parent 6200aa0206
commit 16be97cd98
4 changed files with 39 additions and 2 deletions

View File

@ -104,4 +104,9 @@ tests/cases/conformance/expressions/binaryOperators/logicalAndOperator/logicalAn
const z5 = z && v;
const z6 = z && u;
const z7 = z && n;
const z8 = z && z;
const z8 = z && z;
function f1<T extends string | number | boolean | undefined | null>(t: T) {
const r1 = t && [0];
}

View File

@ -78,7 +78,12 @@ const z4 = z && b;
const z5 = z && v;
const z6 = z && u;
const z7 = z && n;
const z8 = z && z;
const z8 = z && z;
function f1<T extends string | number | boolean | undefined | null>(t: T) {
const r1 = t && [0];
}
//// [logicalAndOperatorStrictMode.js]
var a = [0];
@ -153,3 +158,6 @@ var z5 = z && v;
var z6 = z && u;
var z7 = z && n;
var z8 = z && z;
function f1(t) {
var r1 = t && [0];
}

View File

@ -348,3 +348,14 @@ const z8 = z && z;
>z : Symbol(z, Decl(logicalAndOperatorStrictMode.ts, 7, 5))
>z : Symbol(z, Decl(logicalAndOperatorStrictMode.ts, 7, 5))
function f1<T extends string | number | boolean | undefined | null>(t: T) {
>f1 : Symbol(f1, Decl(logicalAndOperatorStrictMode.ts, 79, 18))
>T : Symbol(T, Decl(logicalAndOperatorStrictMode.ts, 81, 12))
>t : Symbol(t, Decl(logicalAndOperatorStrictMode.ts, 81, 68))
>T : Symbol(T, Decl(logicalAndOperatorStrictMode.ts, 81, 12))
const r1 = t && [0];
>r1 : Symbol(r1, Decl(logicalAndOperatorStrictMode.ts, 82, 9))
>t : Symbol(t, Decl(logicalAndOperatorStrictMode.ts, 81, 68))
}

View File

@ -420,3 +420,16 @@ const z8 = z && z;
>z : undefined
>z : never
function f1<T extends string | number | boolean | undefined | null>(t: T) {
>f1 : <T extends string | number | boolean | null | undefined>(t: T) => void
>null : null
>t : T
const r1 = t && [0];
>r1 : false | "" | 0 | number[] | null | undefined
>t && [0] : false | "" | 0 | number[] | null | undefined
>t : T
>[0] : number[]
>0 : 0
}