/third_party/typescript/tests/baselines/reference/ |
D | arithmeticOperatorWithUndefinedValueAndInvalidOperands.types | 2 // If one operand is the undefined or undefined value, it is treated as having the type of the 15 var r1a1 = undefined * a; 17 >undefined * a : number 18 >undefined : undefined 21 var r1a2 = undefined * b; 23 >undefined * b : number 24 >undefined : undefined 27 var r1a3 = undefined * c; 29 >undefined * c : number 30 >undefined : undefined [all …]
|
D | arithmeticOperatorWithUndefinedValueAndValidOperands.types | 2 // If one operand is the undefined or undefined value, it is treated as having the type of the 22 var ra1 = undefined * a; 24 >undefined * a : number 25 >undefined : undefined 28 var ra2 = undefined * b; 30 >undefined * b : number 31 >undefined : undefined 34 var ra3 = undefined * 1; 36 >undefined * 1 : number 37 >undefined : undefined [all …]
|
D | arithmeticOperatorWithUndefinedValueAndInvalidOperands.js | 2 // If one operand is the undefined or undefined value, it is treated as having the type of the 10 var r1a1 = undefined * a; 11 var r1a2 = undefined * b; 12 var r1a3 = undefined * c; 14 var r1b1 = a * undefined; 15 var r1b2 = b * undefined; 16 var r1b3 = c * undefined; 18 var r1c1 = undefined * true; 19 var r1c2 = undefined * ''; 20 var r1c3 = undefined * {}; [all …]
|
D | arithmeticOperatorWithOnlyNullValueOrUndefinedValue.types | 9 var ra2 = null * undefined; 11 >null * undefined : number 13 >undefined : undefined 15 var ra3 = undefined * null; 17 >undefined * null : number 18 >undefined : undefined 21 var ra4 = undefined * undefined; 23 >undefined * undefined : number 24 >undefined : undefined 25 >undefined : undefined [all …]
|
D | normalizedIntersectionTooComplex.types | 23 >"0" : { common?: string | undefined; "0"?: number | undefined; ref?: Obj<any> | Func<any> | undefi… 24 >common : string | undefined 25 >"0" : number | undefined 26 …undefined; "0"?: number | undefined; ref?: Obj<any> | Func<any> | undefined; }> | Func<{ common?: … 29 >"1" : { common?: string | undefined; "1"?: number | undefined; ref?: Obj<any> | Func<any> | undefi… 30 >common : string | undefined 31 >"1" : number | undefined 32 …undefined; "1"?: number | undefined; ref?: Obj<any> | Func<any> | undefined; }> | Func<{ common?: … 35 >"2" : { common?: string | undefined; "2"?: number | undefined; ref?: Obj<any> | Func<any> | undefi… 36 >common : string | undefined [all …]
|
D | arithmeticOperatorWithUndefinedValueAndValidOperands.js | 2 // If one operand is the undefined or undefined value, it is treated as having the type of the 14 var ra1 = undefined * a; 15 var ra2 = undefined * b; 16 var ra3 = undefined * 1; 17 var ra4 = undefined * E.a; 18 var ra5 = a * undefined; 19 var ra6 = b * undefined; 20 var ra7 = 0 * undefined; 21 var ra8 = E.b * undefined; 24 var rb1 = undefined / a; [all …]
|
D | arithmeticOperatorWithUndefinedValueAndInvalidOperands.symbols | 2 // If one operand is the undefined or undefined value, it is treated as having the type of the 16 var r1a1 = undefined * a; 18 >undefined : Symbol(undefined) 21 var r1a2 = undefined * b; 23 >undefined : Symbol(undefined) 26 var r1a3 = undefined * c; 28 >undefined : Symbol(undefined) 31 var r1b1 = a * undefined; 34 >undefined : Symbol(undefined) 36 var r1b2 = b * undefined; [all …]
|
D | undefinedAssignableToEveryType.types | 25 var b: number = undefined; 27 >undefined : undefined 29 var c: string = undefined; 31 >undefined : undefined 33 var d: boolean = undefined; 35 >undefined : undefined 37 var e: Date = undefined; 39 >undefined : undefined 41 var f: any = undefined; 43 >undefined : undefined [all …]
|
D | arithmeticOperatorWithOnlyNullValueOrUndefinedValue.symbols | 6 var ra2 = null * undefined; 8 >undefined : Symbol(undefined) 10 var ra3 = undefined * null; 12 >undefined : Symbol(undefined) 14 var ra4 = undefined * undefined; 16 >undefined : Symbol(undefined) 17 >undefined : Symbol(undefined) 23 var rb2 = null / undefined; 25 >undefined : Symbol(undefined) 27 var rb3 = undefined / null; [all …]
|
D | arithmeticOperatorWithOnlyNullValueOrUndefinedValue.js | 4 var ra2 = null * undefined; 5 var ra3 = undefined * null; 6 var ra4 = undefined * undefined; 10 var rb2 = null / undefined; 11 var rb3 = undefined / null; 12 var rb4 = undefined / undefined; 16 var rc2 = null % undefined; 17 var rc3 = undefined % null; 18 var rc4 = undefined % undefined; 22 var rd2 = null - undefined; [all …]
|
D | restPropertyWithBindingPattern.types | 20 …undefined; length: number; toString(): string; toLocaleString(): string; pop(): undefined; push(..… 21 >[] : undefined[] 27 …undefined; length: number; toString(): string; toLocaleString(): string; pop(): undefined; push(..… 28 >([]) : undefined[] 29 >[] : undefined[]
|
D | additionOperatorWithUndefinedValueAndValidOperator.types | 2 // If one operand is the null or undefined value, it is treated as having the type of the other ope… 22 // undefined + any 23 var r1: any = undefined + a; 25 >undefined + a : any 26 >undefined : undefined 29 var r2: any = a + undefined; 31 >a + undefined : any 33 >undefined : undefined 35 // undefined + number/enum 36 var r3 = undefined + b; [all …]
|
D | deleteChain.types | 2 declare const o1: undefined | { b: string }; 3 >o1 : { b: string; } | undefined 8 >o1?.b : string | undefined 9 >o1 : { b: string; } | undefined 10 >b : string | undefined 14 >(o1?.b) : string | undefined 15 >o1?.b : string | undefined 16 >o1 : { b: string; } | undefined 17 >b : string | undefined 19 declare const o2: undefined | { b: { c: string } }; [all …]
|
D | nullishCoalescingOperator5.types | 2 declare const a: string | undefined 3 >a : string | undefined 5 declare const b: string | undefined 6 >b : string | undefined 8 declare const c: string | undefined 9 >c : string | undefined 13 >a ?? b || c : string | undefined 14 >a : string | undefined 15 >b || c : string | undefined 16 >b : string | undefined [all …]
|
D | arithmeticOperatorWithUndefinedValueAndValidOperands.symbols | 2 // If one operand is the undefined or undefined value, it is treated as having the type of the 22 var ra1 = undefined * a; 24 >undefined : Symbol(undefined) 27 var ra2 = undefined * b; 29 >undefined : Symbol(undefined) 32 var ra3 = undefined * 1; 34 >undefined : Symbol(undefined) 36 var ra4 = undefined * E.a; 38 >undefined : Symbol(undefined) 43 var ra5 = a * undefined; [all …]
|
D | arithmeticOperatorWithUndefinedValueAndValidOperands.errors.txt | 1 …OperatorWithUndefinedValueAndValidOperands.ts(13,11): error TS2532: Object is possibly 'undefined'. 2 …OperatorWithUndefinedValueAndValidOperands.ts(14,11): error TS2532: Object is possibly 'undefined'. 3 …OperatorWithUndefinedValueAndValidOperands.ts(15,11): error TS2532: Object is possibly 'undefined'. 4 …OperatorWithUndefinedValueAndValidOperands.ts(16,11): error TS2532: Object is possibly 'undefined'. 5 …OperatorWithUndefinedValueAndValidOperands.ts(17,15): error TS2532: Object is possibly 'undefined'. 6 …OperatorWithUndefinedValueAndValidOperands.ts(18,15): error TS2532: Object is possibly 'undefined'. 7 …OperatorWithUndefinedValueAndValidOperands.ts(19,15): error TS2532: Object is possibly 'undefined'. 8 …OperatorWithUndefinedValueAndValidOperands.ts(20,17): error TS2532: Object is possibly 'undefined'. 9 …OperatorWithUndefinedValueAndValidOperands.ts(23,11): error TS2532: Object is possibly 'undefined'. 10 …OperatorWithUndefinedValueAndValidOperands.ts(24,11): error TS2532: Object is possibly 'undefined'. [all …]
|
D | controlFlowOptionalChain.types | 3 declare const o: undefined | { 4 >o : { (...args: any[]): any; [key: string]: any; [key: number]: any; } | undefined 22 >o : { (...args: any[]): any; [key: string]: any; [key: number]: any; } | undefined 29 >a.toString : (radix?: number | undefined) => string 31 >toString : (radix?: number | undefined) => string 39 >o : { (...args: any[]): any; [key: string]: any; [key: number]: any; } | undefined 47 >b.toString : (radix?: number | undefined) => string 49 >toString : (radix?: number | undefined) => string 56 >o : { (...args: any[]): any; [key: string]: any; [key: number]: any; } | undefined 63 >c.toString : (radix?: number | undefined) => string [all …]
|
D | destructuringAssignmentWithDefault.types | 3 >a : { x?: number | undefined; } 4 >x : number | undefined 12 >({x = 1} = a) : { x?: number | undefined; } 13 >{x = 1} = a : { x?: number | undefined; } 17 >a : { x?: number | undefined; } 22 >f1 : (options?: { color?: string | undefined; width?: number | undefined; } | undefined) => void 23 >options : { color?: string | undefined; width?: number | undefined; } | undefined 24 >color : string | undefined 25 >width : number | undefined 28 >color : string | undefined [all …]
|
D | arrayLiteralWidened.types | 6 >[] : undefined[] 10 >[,,] : undefined[] 11 > : undefined 12 > : undefined 20 var a = [undefined, undefined]; 22 >[undefined, undefined] : undefined[] 23 >undefined : undefined 24 >undefined : undefined 28 >[[], [null, null]] : undefined[][] 29 >[] : undefined[] [all …]
|
D | objectLiteralNormalization.types | 4 >a1 : { a: number; b?: undefined; c?: undefined; } | { a: number; b: string; c?: undefined; } | { a… 26 >a1 : { a: number; b?: undefined; c?: undefined; } | { a: number; b: string; c?: undefined; } | { a… 29 a1.b; // string | undefined 30 >a1.b : string | undefined 31 >a1 : { a: number; b?: undefined; c?: undefined; } | { a: number; b: string; c?: undefined; } | { a… 32 >b : string | undefined 34 a1.c; // boolean | undefined 35 >a1.c : boolean | undefined 36 >a1 : { a: number; b?: undefined; c?: undefined; } | { a: number; b: string; c?: undefined; } | { a… 37 >c : boolean | undefined [all …]
|
D | exponentiationOperatorWithUndefinedValueAndInvalidOperands.types | 2 // If one operand is the undefined or undefined value, it is treated as having the type of the 15 var r1a1 = undefined ** a; 17 >undefined ** a : number 18 >undefined : undefined 21 var r1a2 = undefined ** b; 23 >undefined ** b : number 24 >undefined : undefined 27 var r1a3 = undefined ** c; 29 >undefined ** c : number 30 >undefined : undefined [all …]
|
D | logicalAssignment2(target=esnext).types | 4 >foo : { bar(): { baz: 0 | 1 | 42 | undefined | '';}; baz: 0 | 1 | 42 | undefined | ''; } 7 >bar : () => { baz: 0 | 1 | 42 | undefined | '';} 9 baz: 0 | 1 | 42 | undefined | '' 10 >baz : "" | 0 | 1 | 42 | undefined 12 baz: 0 | 1 | 42 | undefined | '' 13 >baz : "" | 0 | 1 | 42 | undefined 15 baz: 0 | 1 | 42 | undefined | '' 16 >baz : "" | 0 | 1 | 42 | undefined 32 >a.baz &&= result.baz : "" | 0 | 1 | 42 | undefined 33 >a.baz : "" | 0 | 1 | 42 | undefined [all …]
|
/third_party/typescript/tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/ |
D | arithmeticOperatorWithUndefinedValueAndInvalidOperands.ts | 1 // If one operand is the undefined or undefined value, it is treated as having the type of the 9 var r1a1 = undefined * a; 10 var r1a2 = undefined * b; 11 var r1a3 = undefined * c; 13 var r1b1 = a * undefined; 14 var r1b2 = b * undefined; 15 var r1b3 = c * undefined; 17 var r1c1 = undefined * true; 18 var r1c2 = undefined * ''; 19 var r1c3 = undefined * {}; [all …]
|
D | arithmeticOperatorWithUndefinedValueAndValidOperands.ts | 1 // If one operand is the undefined or undefined value, it is treated as having the type of the 13 var ra1 = undefined * a; 14 var ra2 = undefined * b; 15 var ra3 = undefined * 1; 16 var ra4 = undefined * E.a; 17 var ra5 = a * undefined; 18 var ra6 = b * undefined; 19 var ra7 = 0 * undefined; 20 var ra8 = E.b * undefined; 23 var rb1 = undefined / a; [all …]
|
/third_party/node/deps/npm/node_modules/es-abstract/ |
D | GetIntrinsic.js | 30 var undefined; // eslint-disable-line no-shadow-restricted-names variable 41 var generatorFunction = generator ? getProto(generator) : undefined; 43 var asyncFunction = asyncFn ? asyncFn.constructor : undefined; 45 var asyncGenFunction = asyncGen ? getProto(asyncGen) : undefined; 46 var asyncGenIterator = asyncGen ? asyncGen() : undefined; 48 var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array); 52 '$ %ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, 53 '$ %ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer.prototype, 54 '$ %ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined, 60 '$ %AsyncFromSyncIteratorPrototype%': undefined, [all …]
|