/third_party/typescript/tests/baselines/reference/ |
D | contextualTypingOfLambdaReturnExpression.symbols | 2 function callb(lam: (l: number) => void); 3 >callb : Symbol(callb, Decl(contextualTypingOfLambdaReturnExpression.ts, 0, 0), Decl(contextualTypi… 7 function callb(lam: (n: string) => void); 8 >callb : Symbol(callb, Decl(contextualTypingOfLambdaReturnExpression.ts, 0, 0), Decl(contextualTypi… 12 function callb(a) { } 13 >callb : Symbol(callb, Decl(contextualTypingOfLambdaReturnExpression.ts, 0, 0), Decl(contextualTypi… 16 callb((a) => a.length); // Ok, we choose the second overload because the first one gave us an error… 17 >callb : Symbol(callb, Decl(contextualTypingOfLambdaReturnExpression.ts, 0, 0), Decl(contextualTypi… 21 callb((a) => { a.length; }); // Error, we picked the first overload and errored when type checking … 22 >callb : Symbol(callb, Decl(contextualTypingOfLambdaReturnExpression.ts, 0, 0), Decl(contextualTypi…
|
D | contextualTypingOfLambdaReturnExpression.js | 2 function callb(lam: (l: number) => void); 3 function callb(lam: (n: string) => void); 4 function callb(a) { } function 6 callb((a) => a.length); // Ok, we choose the second overload because the first one gave us an error… 7 callb((a) => { a.length; }); // Error, we picked the first overload and errored when type checking … 10 function callb(a) { } 11 callb(function (a) { return a.length; }); // Ok, we choose the second overload because the first on… 12 callb(function (a) { a.length; }); // Error, we picked the first overload and errored when type che…
|
D | noImplicitAnyWithOverloads.symbols | 11 function callb(lam: (l: A) => void); 12 >callb : Symbol(callb, Decl(noImplicitAnyWithOverloads.ts, 3, 15), Decl(noImplicitAnyWithOverloads.… 17 function callb(lam: (n: B) => void); 18 >callb : Symbol(callb, Decl(noImplicitAnyWithOverloads.ts, 3, 15), Decl(noImplicitAnyWithOverloads.… 23 function callb(a) { } 24 >callb : Symbol(callb, Decl(noImplicitAnyWithOverloads.ts, 3, 15), Decl(noImplicitAnyWithOverloads.… 27 callb((a) => { a.foo; }); // error, chose first overload 28 >callb : Symbol(callb, Decl(noImplicitAnyWithOverloads.ts, 3, 15), Decl(noImplicitAnyWithOverloads.…
|
D | contextualTypingOfLambdaReturnExpression.types | 2 function callb(lam: (l: number) => void); 3 >callb : { (lam: (l: number) => void): any; (lam: (n: string) => void): any; } 7 function callb(lam: (n: string) => void); 8 >callb : { (lam: (l: number) => void): any; (lam: (n: string) => void): any; } 12 function callb(a) { } 13 >callb : { (lam: (l: number) => void): any; (lam: (n: string) => void): any; } 16 callb((a) => a.length); // Ok, we choose the second overload because the first one gave us an error… 17 >callb((a) => a.length) : any 18 >callb : { (lam: (l: number) => void): any; (lam: (n: string) => void): any; } 25 callb((a) => { a.length; }); // Error, we picked the first overload and errored when type checking … [all …]
|
D | noImplicitAnyWithOverloads.types | 8 function callb(lam: (l: A) => void); 9 >callb : { (lam: (l: A) => void): any; (lam: (n: B) => void): any; } 13 function callb(lam: (n: B) => void); 14 >callb : { (lam: (l: A) => void): any; (lam: (n: B) => void): any; } 18 function callb(a) { } 19 >callb : { (lam: (l: A) => void): any; (lam: (n: B) => void): any; } 22 callb((a) => { a.foo; }); // error, chose first overload 23 >callb((a) => { a.foo; }) : any 24 >callb : { (lam: (l: A) => void): any; (lam: (n: B) => void): any; }
|
D | functionOverloadAmbiguity1.symbols | 2 function callb(lam: (l: number) => void ); 3 >callb : Symbol(callb, Decl(functionOverloadAmbiguity1.ts, 0, 0), Decl(functionOverloadAmbiguity1.t… 7 function callb(lam: (n: string) => void ); 8 >callb : Symbol(callb, Decl(functionOverloadAmbiguity1.ts, 0, 0), Decl(functionOverloadAmbiguity1.t… 12 function callb(a) { } 13 >callb : Symbol(callb, Decl(functionOverloadAmbiguity1.ts, 0, 0), Decl(functionOverloadAmbiguity1.t… 16 callb((a) => { a.length; } ); // error, chose first overload 17 >callb : Symbol(callb, Decl(functionOverloadAmbiguity1.ts, 0, 0), Decl(functionOverloadAmbiguity1.t…
|
D | noImplicitAnyWithOverloads.js | 7 function callb(lam: (l: A) => void); 8 function callb(lam: (n: B) => void); 9 function callb(a) { } function 10 callb((a) => { a.foo; }); // error, chose first overload 13 function callb(a) { } 14 callb(function (a) { a.foo; }); // error, chose first overload
|
D | functionOverloadAmbiguity1.js | 2 function callb(lam: (l: number) => void ); 3 function callb(lam: (n: string) => void ); 4 function callb(a) { } function 5 callb((a) => { a.length; } ); // error, chose first overload 14 function callb(a) { } 15 callb(function (a) { a.length; }); // error, chose first overload
|
D | noImplicitAnyWithOverloads.errors.txt | 2 tests/cases/compiler/noImplicitAnyWithOverloads.ts(6,10): error TS7010: 'callb', which lacks return… 3 tests/cases/compiler/noImplicitAnyWithOverloads.ts(7,10): error TS7010: 'callb', which lacks return… 15 function callb(lam: (l: A) => void); 17 !!! error TS7010: 'callb', which lacks return-type annotation, implicitly has an 'any' return type. 18 function callb(lam: (n: B) => void); 20 !!! error TS7010: 'callb', which lacks return-type annotation, implicitly has an 'any' return type. 21 function callb(a) { } 24 callb((a) => { a.foo; }); // error, chose first overload
|
D | functionOverloadAmbiguity1.types | 2 function callb(lam: (l: number) => void ); 3 >callb : { (lam: (l: number) => void): any; (lam: (n: string) => void): any; } 7 function callb(lam: (n: string) => void ); 8 >callb : { (lam: (l: number) => void): any; (lam: (n: string) => void): any; } 12 function callb(a) { } 13 >callb : { (lam: (l: number) => void): any; (lam: (n: string) => void): any; } 16 callb((a) => { a.length; } ); // error, chose first overload 17 >callb((a) => { a.length; } ) : any 18 >callb : { (lam: (l: number) => void): any; (lam: (n: string) => void): any; }
|
D | functionAssignment.symbols | 77 function callb(lam:(l: number) => void ); 78 >callb : Symbol(callb, Decl(functionAssignment.ts, 26, 19), Decl(functionAssignment.ts, 29, 41), De… 82 function callb(lam:(n: string)=>void); 83 >callb : Symbol(callb, Decl(functionAssignment.ts, 26, 19), Decl(functionAssignment.ts, 29, 41), De… 87 function callb(a) { } 88 >callb : Symbol(callb, Decl(functionAssignment.ts, 26, 19), Decl(functionAssignment.ts, 29, 41), De… 91 callb((a) =>{ a.length; }); 92 >callb : Symbol(callb, Decl(functionAssignment.ts, 26, 19), Decl(functionAssignment.ts, 29, 41), De…
|
D | functionAssignment.js | 31 function callb(lam:(l: number) => void ); 32 function callb(lam:(n: string)=>void); 33 function callb(a) { } function 35 callb((a) =>{ a.length; }); 55 function callb(a) { } 56 callb(function (a) { a.length; });
|
D | functionAssignment.types | 84 function callb(lam:(l: number) => void ); 85 >callb : { (lam: (l: number) => void): any; (lam: (n: string) => void): any; } 89 function callb(lam:(n: string)=>void); 90 >callb : { (lam: (l: number) => void): any; (lam: (n: string) => void): any; } 94 function callb(a) { } 95 >callb : { (lam: (l: number) => void): any; (lam: (n: string) => void): any; } 98 callb((a) =>{ a.length; }); 99 >callb((a) =>{ a.length; }) : any 100 >callb : { (lam: (l: number) => void): any; (lam: (n: string) => void): any; }
|
D | contextualTypingOfLambdaReturnExpression.errors.txt | 6 function callb(lam: (l: number) => void); 7 function callb(lam: (n: string) => void); 8 function callb(a) { } 10 …callb((a) => a.length); // Ok, we choose the second overload because the first one gave us an erro… 13 …callb((a) => { a.length; }); // Error, we picked the first overload and errored when type checking…
|
D | functionOverloadAmbiguity1.errors.txt | 5 function callb(lam: (l: number) => void ); 6 function callb(lam: (n: string) => void ); 7 function callb(a) { } 8 callb((a) => { a.length; } ); // error, chose first overload
|
D | functionAssignment.errors.txt | 37 function callb(lam:(l: number) => void ); 38 function callb(lam:(n: string)=>void); 39 function callb(a) { } 41 callb((a) =>{ a.length; });
|
/third_party/typescript/tests/cases/compiler/ |
D | contextualTypingOfLambdaReturnExpression.ts | 1 function callb(lam: (l: number) => void); function 2 function callb(lam: (n: string) => void); 3 function callb(a) { } 5 callb((a) => a.length); // Ok, we choose the second overload because the first one gave us an error… 6 callb((a) => { a.length; }); // Error, we picked the first overload and errored when type checking …
|
D | noImplicitAnyWithOverloads.ts | 7 function callb(lam: (l: A) => void); function 8 function callb(lam: (n: B) => void); 9 function callb(a) { } 10 callb((a) => { a.foo; }); // error, chose first overload
|
D | functionOverloadAmbiguity1.ts | 1 function callb(lam: (l: number) => void ); function 2 function callb(lam: (n: string) => void ); 3 function callb(a) { } 4 callb((a) => { a.length; } ); // error, chose first overload
|
D | functionAssignment.ts | 30 function callb(lam:(l: number) => void ); function 31 function callb(lam:(n: string)=>void); 32 function callb(a) { } 34 callb((a) =>{ a.length; });
|
/third_party/jsframework/runtime/main/manage/event/ |
D | callbackIntercept.ts | 53 const callb = (msg: { method: string; arguments: any; }) => { constant 85 callb.__onlyPromise = callbLength <= 0; 88 args.push(callb); 90 args = [callb];
|
/third_party/openssl/apps/ |
D | x509.c | 35 static int callb(int ok, X509_STORE_CTX *ctx); 194 X509_STORE_set_verify_cb(ctx, callb); in x509_main() 1024 static int callb(int ok, X509_STORE_CTX *ctx) in callb() function
|