/third_party/typescript/tests/baselines/reference/ |
D | commaOperatorWithSecondOperandStringType.js | 5 var STRING: string; variable 11 ANY, STRING; 12 BOOLEAN, STRING; 13 NUMBER, STRING; 14 STRING, STRING; 15 OBJECT, STRING; 18 var resultIsString1 = (ANY, STRING); 19 var resultIsString2 = (BOOLEAN, STRING); 20 var resultIsString3 = (NUMBER, STRING); 21 var resultIsString4 = (STRING, STRING); [all …]
|
D | commaOperatorWithSecondOperandStringType.types | 11 var STRING: string; 12 >STRING : string 21 ANY, STRING; 22 >ANY, STRING : string 24 >STRING : string 26 BOOLEAN, STRING; 27 >BOOLEAN, STRING : string 29 >STRING : string 31 NUMBER, STRING; 32 >NUMBER, STRING : string [all …]
|
D | commaOperatorWithSecondOperandStringType.symbols | 11 var STRING: string; 12 >STRING : Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) 22 ANY, STRING; 24 >STRING : Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) 26 BOOLEAN, STRING; 28 >STRING : Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) 30 NUMBER, STRING; 32 >STRING : Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) 34 STRING, STRING; 35 >STRING : Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) [all …]
|
D | bitwiseNotOperatorWithStringType.types | 3 var STRING: string; 4 >STRING : string 39 var ResultIsNumber1 = ~STRING; 41 >~STRING : number 42 >STRING : string 111 var ResultIsNumber11 = ~(STRING + STRING); 113 >~(STRING + STRING) : number 114 >(STRING + STRING) : string 115 >STRING + STRING : string 116 >STRING : string [all …]
|
D | logicalNotOperatorWithStringType.types | 3 var STRING: string; 4 >STRING : string 39 var ResultIsBoolean1 = !STRING; 41 >!STRING : boolean 42 >STRING : string 111 var ResultIsBoolean11 = !(STRING + STRING); 113 >!(STRING + STRING) : boolean 114 >(STRING + STRING) : string 115 >STRING + STRING : string 116 >STRING : string [all …]
|
D | commaOperatorsMultipleOperators.types | 11 var STRING: string; 12 >STRING : string 25 BOOLEAN, NUMBER, STRING; 26 >BOOLEAN, NUMBER, STRING : string 30 >STRING : string 32 NUMBER, STRING, OBJECT; 33 >NUMBER, STRING, OBJECT : Object 34 >NUMBER, STRING : string 36 >STRING : string 39 STRING, OBJECT, ANY; [all …]
|
D | voidOperatorWithStringType.types | 3 var STRING: string; 4 >STRING : string 39 var ResultIsAny1 = void STRING; 41 >void STRING : undefined 42 >STRING : string 111 var ResultIsAny11 = void (STRING + STRING); 113 >void (STRING + STRING) : undefined 114 >(STRING + STRING) : string 115 >STRING + STRING : string 116 >STRING : string [all …]
|
D | deleteOperatorWithStringType.types | 3 var STRING: string; 4 >STRING : string 39 var ResultIsBoolean1 = delete STRING; 41 >delete STRING : boolean 42 >STRING : string 111 var ResultIsBoolean11 = delete (STRING + STRING); 113 >delete (STRING + STRING) : boolean 114 >(STRING + STRING) : string 115 >STRING + STRING : string 116 >STRING : string [all …]
|
D | commaOperatorInvalidAssignmentType.types | 8 var STRING: string; 9 >STRING : string 21 resultIsBoolean = (BOOLEAN, STRING); 22 >resultIsBoolean = (BOOLEAN, STRING) : string 24 >(BOOLEAN, STRING) : string 25 >BOOLEAN, STRING : string 27 >STRING : string 45 resultIsNumber = (NUMBER, STRING); 46 >resultIsNumber = (NUMBER, STRING) : string 48 >(NUMBER, STRING) : string [all …]
|
D | commaOperatorsMultipleOperators.js | 5 var STRING: string; variable 10 BOOLEAN, NUMBER, STRING; 11 NUMBER, STRING, OBJECT; 12 STRING, OBJECT, ANY; 16 var resultIsAny1 = (STRING, OBJECT, ANY); 19 var resultIsString1 = (BOOLEAN, NUMBER, STRING); 20 var resultIsObject1 = (NUMBER, STRING, OBJECT); 24 ++NUMBER, STRING.charAt(0), new Object(); 27 var resultIsObject2 = (++NUMBER, STRING.charAt(0), new Object()); 33 var STRING; variable [all …]
|
D | deleteOperatorWithStringType.js | 3 var STRING: string; variable 19 var ResultIsBoolean1 = delete STRING; 33 var ResultIsBoolean11 = delete (STRING + STRING); 34 var ResultIsBoolean12 = delete STRING.charAt(0); 37 var ResultIsBoolean13 = delete delete STRING; 38 var ResultIsBoolean14 = delete delete delete (STRING + STRING); 42 delete STRING; 49 var STRING; variable 63 var ResultIsBoolean1 = delete STRING; 75 var ResultIsBoolean11 = delete (STRING + STRING); [all …]
|
D | bitwiseNotOperatorWithStringType.js | 3 var STRING: string; variable 19 var ResultIsNumber1 = ~STRING; 33 var ResultIsNumber11 = ~(STRING + STRING); 34 var ResultIsNumber12 = ~STRING.charAt(0); 37 var ResultIsNumber13 = ~~STRING; 38 var ResultIsNumber14 = ~~~(STRING + STRING); 41 ~STRING; 48 var STRING; variable 62 var ResultIsNumber1 = ~STRING; 74 var ResultIsNumber11 = ~(STRING + STRING); [all …]
|
D | voidOperatorWithStringType.js | 3 var STRING: string; variable 19 var ResultIsAny1 = void STRING; 33 var ResultIsAny11 = void (STRING + STRING); 34 var ResultIsAny12 = void STRING.charAt(0); 37 var ResultIsAny13 = void void STRING; 38 var ResultIsAny14 = void void void (STRING + STRING); 42 void STRING; 49 var STRING; variable 63 var ResultIsAny1 = void STRING; 75 var ResultIsAny11 = void (STRING + STRING); [all …]
|
D | logicalNotOperatorWithStringType.js | 3 var STRING: string; variable 19 var ResultIsBoolean1 = !STRING; 33 var ResultIsBoolean11 = !(STRING + STRING); 34 var ResultIsBoolean12 = !STRING.charAt(0); 37 var ResultIsBoolean13 = !!STRING; 38 var ResultIsBoolean14 = !!!(STRING + STRING); 42 !STRING; 49 var STRING; variable 63 var ResultIsBoolean1 = !STRING; 75 var ResultIsBoolean11 = !(STRING + STRING); [all …]
|
D | typeofOperatorWithStringType.js | 3 var STRING: string; variable 19 var ResultIsString1 = typeof STRING; 33 var ResultIsString11 = typeof (STRING + STRING); 34 var ResultIsString12 = typeof STRING.charAt(0); 37 var ResultIsString13 = typeof typeof STRING; 38 var ResultIsString14 = typeof typeof typeof (STRING + STRING); 42 typeof STRING; 51 z: typeof STRING; 62 var STRING; variable 76 var ResultIsString1 = typeof STRING; [all …]
|
D | decrementOperatorWithUnsupportedStringType.types | 3 var STRING: string; 4 >STRING : string 39 var ResultIsNumber1 = --STRING; 41 >--STRING : number 42 >STRING : string 49 var ResultIsNumber3 = STRING--; 51 >STRING-- : number 52 >STRING : string 146 var ResultIsNumber16 = --(STRING + STRING); 148 >--(STRING + STRING) : number [all …]
|
D | incrementOperatorWithUnsupportedStringType.types | 3 var STRING: string; 4 >STRING : string 39 var ResultIsNumber1 = ++STRING; 41 >++STRING : number 42 >STRING : string 49 var ResultIsNumber3 = STRING++; 51 >STRING++ : number 52 >STRING : string 146 var ResultIsNumber16 = ++(STRING + STRING); 148 >++(STRING + STRING) : number [all …]
|
D | commaOperatorsMultipleOperators.symbols | 11 var STRING: string; 12 >STRING : Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) 24 BOOLEAN, NUMBER, STRING; 27 >STRING : Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) 29 NUMBER, STRING, OBJECT; 31 >STRING : Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) 34 STRING, OBJECT, ANY; 35 >STRING : Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) 45 var resultIsAny1 = (STRING, OBJECT, ANY); 47 >STRING : Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) [all …]
|
D | decrementOperatorWithUnsupportedStringType.js | 3 var STRING: string; variable 19 var ResultIsNumber1 = --STRING; 22 var ResultIsNumber3 = STRING--; 40 var ResultIsNumber16 = --(STRING + STRING); 47 var ResultIsNumber22 = (STRING + STRING)--; 51 --STRING; 60 STRING--; 70 var STRING; variable 84 var ResultIsNumber1 = --STRING; 86 var ResultIsNumber3 = STRING--; [all …]
|
D | incrementOperatorWithUnsupportedStringType.js | 3 var STRING: string; variable 19 var ResultIsNumber1 = ++STRING; 22 var ResultIsNumber3 = STRING++; 40 var ResultIsNumber16 = ++(STRING + STRING); 47 var ResultIsNumber22 = (STRING + STRING)++; 51 ++STRING; 60 STRING++; 70 var STRING; variable 84 var ResultIsNumber1 = ++STRING; 86 var ResultIsNumber3 = STRING++; [all …]
|
D | negateOperatorWithStringType.types | 3 var STRING: string; 4 >STRING : string 39 var ResultIsNumber1 = -STRING; 41 >-STRING : number 42 >STRING : string 111 var ResultIsNumber11 = -(STRING + STRING); 113 >-(STRING + STRING) : number 114 >(STRING + STRING) : string 115 >STRING + STRING : string 116 >STRING : string [all …]
|
D | plusOperatorWithStringType.types | 3 var STRING: string; 4 >STRING : string 39 var ResultIsNumber1 = +STRING; 41 >+STRING : number 42 >STRING : string 111 var ResultIsNumber11 = +(STRING + STRING); 113 >+(STRING + STRING) : number 114 >(STRING + STRING) : string 115 >STRING + STRING : string 116 >STRING : string [all …]
|
D | typeofOperatorWithStringType.types | 3 var STRING: string; 4 >STRING : string 39 var ResultIsString1 = typeof STRING; 41 >typeof STRING : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "… 42 >STRING : string 111 var ResultIsString11 = typeof (STRING + STRING); 113 >typeof (STRING + STRING) : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "… 114 >(STRING + STRING) : string 115 >STRING + STRING : string 116 >STRING : string [all …]
|
D | logicalNotOperatorWithStringType.symbols | 3 var STRING: string; 4 >STRING : Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) 33 var ResultIsBoolean1 = !STRING; 35 >STRING : Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) 84 var ResultIsBoolean11 = !(STRING + STRING); 86 >STRING : Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) 87 >STRING : Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) 89 var ResultIsBoolean12 = !STRING.charAt(0); 91 >STRING.charAt : Symbol(String.charAt, Decl(lib.es5.d.ts, --, --)) 92 >STRING : Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) [all …]
|
/third_party/typescript/tests/cases/conformance/expressions/commaOperator/ |
D | commaOperatorWithSecondOperandStringType.ts | 6 var STRING: string; variable 12 ANY, STRING; 13 BOOLEAN, STRING; 14 NUMBER, STRING; 15 STRING, STRING; 16 OBJECT, STRING; 19 var resultIsString1 = (ANY, STRING); 20 var resultIsString2 = (BOOLEAN, STRING); 21 var resultIsString3 = (NUMBER, STRING); 22 var resultIsString4 = (STRING, STRING); [all …]
|