Home
last modified time | relevance | path

Searched refs:never (Results 1 – 25 of 3185) sorted by relevance

12345678910>>...128

/third_party/typescript/tests/baselines/reference/
DspreadOfObjectLiteralAssignableToIndexSignature.types2 const foo: Record<never, never> = {} // OK
3 >foo : Record<never, never>
12 >recordOfRecords.propA = {...(foo !== undefined ? {foo} : {})} : { foo?: Record<never, never> | und…
16 >{...(foo !== undefined ? {foo} : {})} : { foo?: Record<never, never> | undefined; }
17 >(foo !== undefined ? {foo} : {}) : { foo: Record<never, never>; } | {}
18 >foo !== undefined ? {foo} : {} : { foo: Record<never, never>; } | {}
20 >foo : Record<never, never>
22 >{foo} : { foo: Record<never, never>; }
23 >foo : Record<never, never>
27 >recordOfRecords.propB = {...(foo && {foo})} : { foo: Record<never, never>; }
[all …]
DdestructureOfVariableSameAsShorthand.types3 interface AxiosResponse<T = never> {
8 declare function get<T = never, R = AxiosResponse<T>>(): Promise<R>;
9 >get : <T = never, R = AxiosResponse<T>>() => Promise<R>
16 >get().then((response) => { // body is never const body = response.data; }) : Prom…
17 >get().then : <TResult1 = AxiosResponse<never>, TResult2 = never>(onfulfilled?: (value: AxiosRespon…
18 >get() : Promise<AxiosResponse<never>>
19 >get : <T = never, R = AxiosResponse<T>>() => Promise<R>
20 >then : <TResult1 = AxiosResponse<never>, TResult2 = never>(onfulfilled?: (value: AxiosResponse<nev…
21 >(response) => { // body is never const body = response.data; } : (response: Axios…
22 >response : AxiosResponse<never>
[all …]
DconditionalTypesSimplifyWhenTrivial.types3 >fn1 : <Params>(params: Pick<Params, Exclude<keyof Params, never>>) => Params
4 …ck<Params, Exclude<keyof Params, never>>,): Params => params : <Params>(params: Pick<Params, Exclu…
6 params: Pick<Params, Exclude<keyof Params, never>>,
7 >params : Pick<Params, Exclude<keyof Params, never>>
10 >params : Pick<Params, Exclude<keyof Params, never>>
12 function fn2<T>(x: Exclude<T, never>) {
13 >fn2 : <T>(x: Exclude<T, never>) => void
14 >x : Exclude<T, never>
18 >x : Exclude<T, never>
22 >x : Exclude<T, never>
[all …]
DneverTypeErrors2.errors.txt1 tests/cases/conformance/types/never/neverTypeErrors2.ts(3,5): error TS2322: Type 'number' is not as…
2 tests/cases/conformance/types/never/neverTypeErrors2.ts(4,5): error TS2322: Type 'string' is not as…
3 tests/cases/conformance/types/never/neverTypeErrors2.ts(5,5): error TS2322: Type 'boolean' is not a…
4 …ests/cases/conformance/types/never/neverTypeErrors2.ts(6,5): error TS2322: Type 'undefined' is not…
5 tests/cases/conformance/types/never/neverTypeErrors2.ts(7,5): error TS2322: Type 'null' is not assi…
6 tests/cases/conformance/types/never/neverTypeErrors2.ts(8,5): error TS2322: Type '{}' is not assign…
7 tests/cases/conformance/types/never/neverTypeErrors2.ts(9,5): error TS2349: This expression is not …
8 Type 'never' has no call signatures.
9 …sts/cases/conformance/types/never/neverTypeErrors2.ts(13,5): error TS2322: Type 'undefined' is not…
10 tests/cases/conformance/types/never/neverTypeErrors2.ts(17,5): error TS2322: Type 'number' is not a…
[all …]
DneverTypeErrors1.errors.txt1 tests/cases/conformance/types/never/neverTypeErrors1.ts(3,5): error TS2322: Type 'number' is not as…
2 tests/cases/conformance/types/never/neverTypeErrors1.ts(4,5): error TS2322: Type 'string' is not as…
3 tests/cases/conformance/types/never/neverTypeErrors1.ts(5,5): error TS2322: Type 'boolean' is not a…
4 …ests/cases/conformance/types/never/neverTypeErrors1.ts(6,5): error TS2322: Type 'undefined' is not…
5 tests/cases/conformance/types/never/neverTypeErrors1.ts(7,5): error TS2322: Type 'null' is not assi…
6 tests/cases/conformance/types/never/neverTypeErrors1.ts(8,5): error TS2322: Type '{}' is not assign…
7 tests/cases/conformance/types/never/neverTypeErrors1.ts(9,5): error TS2349: This expression is not …
8 Type 'never' has no call signatures.
9 …sts/cases/conformance/types/never/neverTypeErrors1.ts(13,5): error TS2322: Type 'undefined' is not…
10 tests/cases/conformance/types/never/neverTypeErrors1.ts(17,5): error TS2322: Type 'number' is not a…
[all …]
DneverType.types1 === tests/cases/conformance/types/never/neverType.ts ===
2 function error(message: string): never {
3 >error : (message: string) => never
23 >fail : () => never
26 >error("Something failed") : never
27 >error : (message: string) => never
32 >failOrThrow : (shouldFail: boolean) => never
39 >fail() : never
40 >fail : () => never
55 function infiniteLoop2(): never {
[all …]
DneverTypeErrors2.types1 === tests/cases/conformance/types/never/neverTypeErrors2.ts ===
5 let x: never;
6 >x : never
10 >x : never
15 >x : never
20 >x : never
25 >x : never
30 >x : never
35 >x : never
40 >x : never
[all …]
DneverTypeErrors1.types1 === tests/cases/conformance/types/never/neverTypeErrors1.ts ===
5 let x: never;
6 >x : never
10 >x : never
15 >x : never
20 >x : never
25 >x : never
30 >x : never
35 >x : never
40 >x : never
[all …]
DneverUnionIntersection.types1 === tests/cases/conformance/types/never/neverUnionIntersection.ts ===
2 type T01 = string | never;
5 type T02 = string & never;
6 >T02 : never
8 type T03 = string | number | never;
11 type T04 = string & number & never;
12 >T04 : never
14 type T05 = any | never;
17 type T06 = any & never;
18 >T06 : never
[all …]
DneverReturningFunctions1.types2 function fail(message?: string): never {
3 >fail : (message?: string | undefined) => never
20 >fail("undefined argument") : never
21 >fail : (message?: string | undefined) => never
41 >fail("negative number") : never
42 >fail : (message?: string | undefined) => never
57 >fail() : never
58 >fail : (message?: string | undefined) => never
64 function f11(x: string | undefined, fail: (message?: string) => never) {
65 >f11 : (x: string | undefined, fail: (message?: string | undefined) => never) => void
[all …]
DpromiseType.types106 >Promise.reject(Error()) : Promise<never>
107 >Promise.reject : <T = never>(reason?: any) => Promise<T>
109 >reject : <T = never>(reason?: any) => Promise<T>
171 >Promise.reject(Error()) : Promise<never>
172 >Promise.reject : <T = never>(reason?: any) => Promise<T>
174 >reject : <T = never>(reason?: any) => Promise<T>
185 >p.catch : <TResult = never>(onrejected?: (reason: any) => TResult | PromiseLike<TResult>) => Promi…
187 >catch : <TResult = never>(onrejected?: (reason: any) => TResult | PromiseLike<TResult>) => Promise…
192 >p.then : <TResult1 = boolean, TResult2 = never>(onfulfilled?: (value: boolean) => TResult1 | Promi…
194 >then : <TResult1 = boolean, TResult2 = never>(onfulfilled?: (value: boolean) => TResult1 | Promise…
[all …]
Dparser.asyncGenerators.objectLiteralMethods.es2018.types3 >o1 : { f(): AsyncGenerator<never, void, unknown>; }
4 >{ async * f() { }} : { f(): AsyncGenerator<never, void, unknown>; }
7 >f : () => AsyncGenerator<never, void, unknown>
12 >o2 : { await(): AsyncGenerator<never, void, unknown>; }
13 >{ async * await() { }} : { await(): AsyncGenerator<never, void, unknown>; }
16 >await : () => AsyncGenerator<never, void, unknown>
21 >o3 : { yield(): AsyncGenerator<never, void, unknown>; }
22 >{ async * yield() { }} : { yield(): AsyncGenerator<never, void, unknown>; }
25 >yield : () => AsyncGenerator<never, void, unknown>
30 >o4 : { f(await: any): AsyncGenerator<never, void, unknown>; }
[all …]
DunusedIdentifiersConsolidated1.errors.txt1 …dIdentifiersConsolidated1.ts(1,18): error TS6133: 'person' is declared but its value is never read.
2 …edIdentifiersConsolidated1.ts(2,9): error TS6133: 'unused' is declared but its value is never read.
3 …onsolidated1.ts(5,32): error TS6133: 'unusedtypeparameter' is declared but its value is never read.
4 …solidated1.ts(6,13): error TS6133: 'unusedprivatevariable' is declared but its value is never read.
5 …dentifiersConsolidated1.ts(7,13): error TS6133: 'greeting' is declared but its value is never read.
6 …dentifiersConsolidated1.ts(11,17): error TS6133: 'message' is declared but its value is never read.
7 …dentifiersConsolidated1.ts(12,13): error TS6133: 'unused2' is declared but its value is never read.
8 …IdentifiersConsolidated1.ts(16,20): error TS6133: 'person' is declared but its value is never read.
9 …IdentifiersConsolidated1.ts(17,13): error TS6133: 'unused' is declared but its value is never read.
10 …olidated1.ts(24,13): error TS6133: 'unUsedPrivateFunction' is declared but its value is never read.
[all …]
DunusedLocalsAndParameters.errors.txt1 …iler/unusedLocalsAndParameters.ts(4,12): error TS6133: 'a' is declared but its value is never read.
2 …iler/unusedLocalsAndParameters.ts(9,22): error TS6133: 'a' is declared but its value is never read.
3 …unusedLocalsAndParameters.ts(15,5): error TS6133: 'farrow' is declared but its value is never read.
4 …ler/unusedLocalsAndParameters.ts(15,15): error TS6133: 'a' is declared but its value is never read.
5 tests/cases/compiler/unusedLocalsAndParameters.ts(18,7): error TS6196: 'C' is declared but never us…
6 …ler/unusedLocalsAndParameters.ts(20,12): error TS6133: 'a' is declared but its value is never read.
7 …ler/unusedLocalsAndParameters.ts(23,11): error TS6133: 'v' is declared but its value is never read.
8 …iler/unusedLocalsAndParameters.ts(27,5): error TS6133: 'E' is declared but its value is never read.
9 …ler/unusedLocalsAndParameters.ts(29,12): error TS6133: 'a' is declared but its value is never read.
10 …ler/unusedLocalsAndParameters.ts(32,11): error TS6133: 'v' is declared but its value is never read.
[all …]
Dparser.asyncGenerators.functionExpressions.es2018.types3 >f1 : () => AsyncGenerator<never, void, unknown>
4 >async function * f() {} : () => AsyncGenerator<never, void, unknown>
5 >f : () => AsyncGenerator<never, void, unknown>
10 >f2 : () => AsyncGenerator<never, void, unknown>
11 >async function * await() {} : () => AsyncGenerator<never, void, unknown>
12 >await : () => AsyncGenerator<never, void, unknown>
17 >f3 : () => AsyncGenerator<never, void, unknown>
18 >async function * yield() {} : () => AsyncGenerator<never, void, unknown>
19 >yield : () => AsyncGenerator<never, void, unknown>
24 >f4 : (await: any) => AsyncGenerator<never, void, unknown>
[all …]
DneverUnionIntersection.js2 type T01 = string | never;
3 type T02 = string & never;
4 type T03 = string | number | never;
5 type T04 = string & number & never;
6 type T05 = any | never;
7 type T06 = any & never;
8 type T07 = undefined | never;
9 type T08 = undefined & never;
10 type T09 = null | never;
11 type T10 = null & never;
[all …]
DpromiseTypeStrictNull.types106 >Promise.reject(Error()) : Promise<never>
107 >Promise.reject : <T = never>(reason?: any) => Promise<T>
109 >reject : <T = never>(reason?: any) => Promise<T>
171 >Promise.reject(Error()) : Promise<never>
172 >Promise.reject : <T = never>(reason?: any) => Promise<T>
174 >reject : <T = never>(reason?: any) => Promise<T>
185 >p.catch : <TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null …
187 >catch : <TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | …
192 >p.then : <TResult1 = boolean, TResult2 = never>(onfulfilled?: ((value: boolean) => TResult1 | Prom…
194 >then : <TResult1 = boolean, TResult2 = never>(onfulfilled?: ((value: boolean) => TResult1 | Promis…
[all …]
DintersectionReductionStrict.types11 type T2 = 'a' & string & 'b'; // never
12 >T2 : never
17 type T4 = 10 & number & 20; // never
18 >T4 : never
24 type T6 = typeof sym1 & symbol & typeof sym2; // never
25 >T6 : never
29 type T7 = string & 'a' & number & 10 & symbol & typeof sym1; // never
30 >T7 : never
40 >N1 : never
43 >N2 : never
[all …]
DtupleTypeInference2.types11 f([undefined, ''] as [never, string]); // T: never
12 >f([undefined, ''] as [never, string]) : never
14 >[undefined, ''] as [never, string] : [never, string]
40 >[[]] : [never[]]
41 >[] : never[]
54 >[[]] : [never[]]
55 >[] : never[]
66 h2([[]] as [never[]]); // T: never
67 >h2([[]] as [never[]]) : never
69 >[[]] as [never[]] : [never[]]
[all …]
DindexingTypesWithNever.types13 // Should be never but without an error
14 type Result1 = TestObj[never];
15 >Result1 : never
20 // Should be never but without an error
22 >Result2 : never
24 declare function genericFn1<T>(obj: T): T[never];
25 >genericFn1 : <T>(obj: T) => T[never]
28 // Should be never
30 >result3 : never
31 >genericFn1({ c: "ctest", d: "dtest" }) : never
[all …]
DdiscriminantsAndNullOrUndefined.types13 function never(_: never): never {
14 >never : (_: never) => never
15 >_ : never
55 default: never(c);
56 >never(c) : never
57 >never : (_: never) => never
58 >c : never
DneverUnionIntersection.symbols1 === tests/cases/conformance/types/never/neverUnionIntersection.ts ===
2 type T01 = string | never;
5 type T02 = string & never;
8 type T03 = string | number | never;
11 type T04 = string & number & never;
14 type T05 = any | never;
17 type T06 = any & never;
20 type T07 = undefined | never;
23 type T08 = undefined & never;
26 type T09 = null | never;
[all …]
DunusedVariablesWithUnderscoreInBindingElement.errors.txt1 …thUnderscoreInBindingElement.ts(12,17): error TS6133: 'b1' is declared but its value is never read.
2 …thUnderscoreInBindingElement.ts(13,12): error TS6133: 'a2' is declared but its value is never read.
3 …thUnderscoreInBindingElement.ts(14,12): error TS6133: 'a3' is declared but its value is never read.
4 …thUnderscoreInBindingElement.ts(14,16): error TS6133: 'b3' is declared but its value is never read.
5 …thUnderscoreInBindingElement.ts(23,12): error TS6133: 'a3' is declared but its value is never read.
6 …thUnderscoreInBindingElement.ts(23,18): error TS6133: 'b3' is declared but its value is never read.
7 …thUnderscoreInBindingElement.ts(23,22): error TS6133: 'c3' is declared but its value is never read.
8 …thUnderscoreInBindingElement.ts(23,28): error TS6133: 'd3' is declared but its value is never read.
9 …thUnderscoreInBindingElement.ts(23,32): error TS6133: 'e3' is declared but its value is never read.
10 …thUnderscoreInBindingElement.ts(37,22): error TS6133: 'b1' is declared but its value is never read.
[all …]
DunmatchedParameterPositions.types4 declare let s: (...items: never[]) => never[];
5 >s : (...items: never[]) => never[]
6 >items : never[]
10 >s : (...items: never[]) => never[]
15 >s : (...items: never[]) => never[]
/third_party/boost/libs/asio/test/execution/
Dprefer_only.cpp192 return either_blocking_executor(execution::blocking.never); in require()
198 if (blocking_ == execution::blocking.never) in execute()
301 boost::asio::query(ex1, execution::blocking.never) in prefer_only_executor_query_test()
315 boost::asio::query(ex2, execution::blocking.never) in prefer_only_executor_query_test()
318 executor_type ex3 = boost::asio::prefer(ex1, execution::blocking.never); in prefer_only_executor_query_test()
329 boost::asio::query(ex3, execution::blocking.never) in prefer_only_executor_query_test()
336 == execution::blocking.never); in prefer_only_executor_query_test()
340 == execution::blocking.never); in prefer_only_executor_query_test()
343 boost::asio::query(ex4, execution::blocking.never) in prefer_only_executor_query_test()
344 == execution::blocking.never); in prefer_only_executor_query_test()
[all …]

12345678910>>...128