mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-13 16:10:06 -06:00
Accept new baselines
This commit is contained in:
parent
44339dd55f
commit
4501b3ec60
@ -64,9 +64,9 @@ if (isNodeList(sourceObj)) {
|
||||
>sourceObj : Symbol(sourceObj, Decl(controlFlowBinaryOrExpression.ts, 23, 3))
|
||||
|
||||
sourceObj.length;
|
||||
>sourceObj.length : Symbol(HTMLCollection.length, Decl(controlFlowBinaryOrExpression.ts, 14, 33))
|
||||
>sourceObj.length : Symbol(length, Decl(controlFlowBinaryOrExpression.ts, 14, 33), Decl(controlFlowBinaryOrExpression.ts, 10, 27))
|
||||
>sourceObj : Symbol(sourceObj, Decl(controlFlowBinaryOrExpression.ts, 23, 3))
|
||||
>length : Symbol(HTMLCollection.length, Decl(controlFlowBinaryOrExpression.ts, 14, 33))
|
||||
>length : Symbol(length, Decl(controlFlowBinaryOrExpression.ts, 14, 33), Decl(controlFlowBinaryOrExpression.ts, 10, 27))
|
||||
}
|
||||
|
||||
if (isHTMLCollection(sourceObj)) {
|
||||
@ -74,9 +74,9 @@ if (isHTMLCollection(sourceObj)) {
|
||||
>sourceObj : Symbol(sourceObj, Decl(controlFlowBinaryOrExpression.ts, 23, 3))
|
||||
|
||||
sourceObj.length;
|
||||
>sourceObj.length : Symbol(HTMLCollection.length, Decl(controlFlowBinaryOrExpression.ts, 14, 33))
|
||||
>sourceObj.length : Symbol(length, Decl(controlFlowBinaryOrExpression.ts, 14, 33), Decl(controlFlowBinaryOrExpression.ts, 10, 27))
|
||||
>sourceObj : Symbol(sourceObj, Decl(controlFlowBinaryOrExpression.ts, 23, 3))
|
||||
>length : Symbol(HTMLCollection.length, Decl(controlFlowBinaryOrExpression.ts, 14, 33))
|
||||
>length : Symbol(length, Decl(controlFlowBinaryOrExpression.ts, 14, 33), Decl(controlFlowBinaryOrExpression.ts, 10, 27))
|
||||
}
|
||||
|
||||
if (isNodeList(sourceObj) || isHTMLCollection(sourceObj)) {
|
||||
@ -86,8 +86,8 @@ if (isNodeList(sourceObj) || isHTMLCollection(sourceObj)) {
|
||||
>sourceObj : Symbol(sourceObj, Decl(controlFlowBinaryOrExpression.ts, 23, 3))
|
||||
|
||||
sourceObj.length;
|
||||
>sourceObj.length : Symbol(HTMLCollection.length, Decl(controlFlowBinaryOrExpression.ts, 14, 33))
|
||||
>sourceObj.length : Symbol(length, Decl(controlFlowBinaryOrExpression.ts, 14, 33), Decl(controlFlowBinaryOrExpression.ts, 10, 27))
|
||||
>sourceObj : Symbol(sourceObj, Decl(controlFlowBinaryOrExpression.ts, 23, 3))
|
||||
>length : Symbol(HTMLCollection.length, Decl(controlFlowBinaryOrExpression.ts, 14, 33))
|
||||
>length : Symbol(length, Decl(controlFlowBinaryOrExpression.ts, 14, 33), Decl(controlFlowBinaryOrExpression.ts, 10, 27))
|
||||
}
|
||||
|
||||
|
||||
@ -76,22 +76,22 @@ var sourceObj: EventTargetLike = <any>undefined;
|
||||
if (isNodeList(sourceObj)) {
|
||||
>isNodeList(sourceObj) : boolean
|
||||
>isNodeList : (sourceObj: any) => sourceObj is NodeList
|
||||
>sourceObj : { a: string; } | HTMLCollection
|
||||
>sourceObj : { a: string; } | HTMLCollection | NodeList
|
||||
|
||||
sourceObj.length;
|
||||
>sourceObj.length : number
|
||||
>sourceObj : HTMLCollection
|
||||
>sourceObj : HTMLCollection | NodeList
|
||||
>length : number
|
||||
}
|
||||
|
||||
if (isHTMLCollection(sourceObj)) {
|
||||
>isHTMLCollection(sourceObj) : boolean
|
||||
>isHTMLCollection : (sourceObj: any) => sourceObj is HTMLCollection
|
||||
>sourceObj : HTMLCollection | { a: string; }
|
||||
>sourceObj : HTMLCollection | NodeList | { a: string; }
|
||||
|
||||
sourceObj.length;
|
||||
>sourceObj.length : number
|
||||
>sourceObj : HTMLCollection
|
||||
>sourceObj : HTMLCollection | NodeList
|
||||
>length : number
|
||||
}
|
||||
|
||||
@ -99,14 +99,14 @@ if (isNodeList(sourceObj) || isHTMLCollection(sourceObj)) {
|
||||
>isNodeList(sourceObj) || isHTMLCollection(sourceObj) : boolean
|
||||
>isNodeList(sourceObj) : boolean
|
||||
>isNodeList : (sourceObj: any) => sourceObj is NodeList
|
||||
>sourceObj : HTMLCollection | { a: string; }
|
||||
>sourceObj : HTMLCollection | NodeList | { a: string; }
|
||||
>isHTMLCollection(sourceObj) : boolean
|
||||
>isHTMLCollection : (sourceObj: any) => sourceObj is HTMLCollection
|
||||
>sourceObj : { a: string; }
|
||||
|
||||
sourceObj.length;
|
||||
>sourceObj.length : number
|
||||
>sourceObj : HTMLCollection
|
||||
>sourceObj : HTMLCollection | NodeList | ({ a: string; } & HTMLCollection)
|
||||
>length : number
|
||||
}
|
||||
|
||||
|
||||
@ -14,49 +14,49 @@ var y: T = undefined;
|
||||
|
||||
if (x === "foo") {
|
||||
>x === "foo" : boolean
|
||||
>x : string
|
||||
>x : "foo" | "bar" | "baz" | string
|
||||
>"foo" : "foo"
|
||||
|
||||
let a = x;
|
||||
>a : string
|
||||
>x : string
|
||||
>a : "foo" | string
|
||||
>x : "foo" | string
|
||||
}
|
||||
else if (x !== "bar") {
|
||||
>x !== "bar" : boolean
|
||||
>x : string
|
||||
>x : "bar" | "baz" | string
|
||||
>"bar" : "bar"
|
||||
|
||||
let b = x || y;
|
||||
>b : string
|
||||
>x || y : string
|
||||
>x : string
|
||||
>y : string
|
||||
>x : "baz" | string
|
||||
>y : string | "foo" | "bar" | "baz"
|
||||
}
|
||||
else {
|
||||
let c = x;
|
||||
>c : string
|
||||
>x : string
|
||||
>c : "bar" | string
|
||||
>x : "bar" | string
|
||||
|
||||
let d = y;
|
||||
>d : string
|
||||
>y : string
|
||||
>d : string | "foo" | "bar" | "baz"
|
||||
>y : string | "foo" | "bar" | "baz"
|
||||
|
||||
let e: (typeof x) | (typeof y) = c || d;
|
||||
>e : string
|
||||
>x : string
|
||||
>y : string
|
||||
>e : "bar" | string | "foo" | "baz"
|
||||
>x : "bar" | string
|
||||
>y : string | "foo" | "bar" | "baz"
|
||||
>c || d : string
|
||||
>c : string
|
||||
>d : string
|
||||
>c : "bar" | string
|
||||
>d : string | "foo" | "bar" | "baz"
|
||||
}
|
||||
|
||||
x = y;
|
||||
>x = y : string
|
||||
>x = y : string | "foo" | "bar" | "baz"
|
||||
>x : "foo" | "bar" | "baz" | string
|
||||
>y : string
|
||||
>y : string | "foo" | "bar" | "baz"
|
||||
|
||||
y = x;
|
||||
>y = x : string
|
||||
>y = x : "foo" | "bar" | "baz" | string
|
||||
>y : string | "foo" | "bar" | "baz"
|
||||
>x : string
|
||||
>x : "foo" | "bar" | "baz" | string
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ else {
|
||||
if (typeof x !== "number") {
|
||||
>typeof x !== "number" : boolean
|
||||
>typeof x : string
|
||||
>x : number | string
|
||||
>x : number | E | V | string
|
||||
>"number" : "number"
|
||||
|
||||
x; // string
|
||||
@ -35,6 +35,6 @@ if (typeof x !== "number") {
|
||||
}
|
||||
else {
|
||||
x; // number|E|V
|
||||
>x : number
|
||||
>x : number | E | V
|
||||
}
|
||||
|
||||
|
||||
@ -204,7 +204,7 @@ if (ctor5 instanceof C1) {
|
||||
|
||||
ctor5.p1; // C1
|
||||
>ctor5.p1 : string
|
||||
>ctor5 : C1
|
||||
>ctor5 : C1 | D1
|
||||
>p1 : string
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user