Searched refs:zeroOf (Results 1 – 5 of 5) sorted by relevance
/third_party/typescript/tests/cases/conformance/types/conditional/ |
D | conditionalTypes1.ts | 145 function zeroOf<T extends number | string | boolean>(value: T) { function 150 zeroOf(5); // 0 151 zeroOf("hello"); // "" 152 zeroOf(true); // false 153 zeroOf(n); // 0 154 zeroOf(b); // False 155 zeroOf(x); // 0 | false 156 zeroOf(y); // ZeroOf<T>
|
/third_party/typescript/tests/baselines/reference/ |
D | conditionalTypes1.js | 143 function zeroOf<T extends number | string | boolean>(value: T) { 148 zeroOf(5); // 0 149 zeroOf("hello"); // "" 150 zeroOf(true); // false 151 zeroOf(n); // 0 152 zeroOf(b); // False 153 zeroOf(x); // 0 | false 154 zeroOf(y); // ZeroOf<T> 411 function zeroOf(value) { function 415 zeroOf(5); // 0 [all …]
|
D | conditionalTypes1.types | 407 function zeroOf<T extends number | string | boolean>(value: T) { 408 >zeroOf : <T extends string | number | boolean>(value: T) => ZeroOf<T> 436 zeroOf(5); // 0 437 >zeroOf(5) : 0 438 >zeroOf : <T extends string | number | boolean>(value: T) => ZeroOf<T> 441 zeroOf("hello"); // "" 442 >zeroOf("hello") : "" 443 >zeroOf : <T extends string | number | boolean>(value: T) => ZeroOf<T> 446 zeroOf(true); // false 447 >zeroOf(true) : false [all …]
|
D | conditionalTypes1.symbols | 541 function zeroOf<T extends number | string | boolean>(value: T) { 542 >zeroOf : Symbol(zeroOf, Decl(conditionalTypes1.ts, 139, 104)) 563 zeroOf(5); // 0 564 >zeroOf : Symbol(zeroOf, Decl(conditionalTypes1.ts, 139, 104)) 566 zeroOf("hello"); // "" 567 >zeroOf : Symbol(zeroOf, Decl(conditionalTypes1.ts, 139, 104)) 569 zeroOf(true); // false 570 >zeroOf : Symbol(zeroOf, Decl(conditionalTypes1.ts, 139, 104)) 572 zeroOf(n); // 0 573 >zeroOf : Symbol(zeroOf, Decl(conditionalTypes1.ts, 139, 104)) [all …]
|
D | conditionalTypes1.errors.txt | 286 function zeroOf<T extends number | string | boolean>(value: T) { 291 zeroOf(5); // 0 292 zeroOf("hello"); // "" 293 zeroOf(true); // false 294 zeroOf(n); // 0 295 zeroOf(b); // False 296 zeroOf(x); // 0 | false 297 zeroOf(y); // ZeroOf<T>
|