Home
last modified time | relevance | path

Searched refs:fn5 (Results 1 – 25 of 90) sorted by relevance

1234

/third_party/typescript/tests/baselines/reference/
DoverloadResolutionClassConstructors.js92 class fn5 { class
97 new fn5((n) => n.toFixed());
98 new fn5((n) => n.substr(0));
99 new fn5((n) => n.blah); // Error
204 var fn5 = /** @class */ (function () { function
205 function fn5() { function
208 return fn5;
210 new fn5(function (n) { return n.toFixed(); });
211 new fn5(function (n) { return n.substr(0); });
212 new fn5(function (n) { return n.blah; }); // Error
DoverloadResolutionClassConstructors.types246 class fn5 {
247 >fn5 : fn5
260 new fn5((n) => n.toFixed());
261 >new fn5((n) => n.toFixed()) : fn5
262 >fn5 : typeof fn5
270 new fn5((n) => n.substr(0));
271 >new fn5((n) => n.substr(0)) : fn5
272 >fn5 : typeof fn5
281 new fn5((n) => n.blah); // Error
282 >new fn5((n) => n.blah) : fn5
[all …]
DtaggedTemplateStringsWithOverloadResolution3_ES6.js67 function fn5(strs: TemplateStringsArray, f: (n: string) => void): string;
68 function fn5(strs: TemplateStringsArray, f: (n: number) => void): number;
69 function fn5() { return undefined; } function
70 fn5 `${ (n) => n.toFixed() }`; // will error; 'n' should have type 'string'.
71 fn5 `${ (n) => n.substr(0) }`;
111 function fn5() { return undefined; }
112 fn5 `${(n) => n.toFixed()}`; // will error; 'n' should have type 'string'.
113 fn5 `${(n) => n.substr(0)}`;
DtaggedTemplateStringsWithOverloadResolution3.js67 function fn5(strs: TemplateStringsArray, f: (n: string) => void): string;
68 function fn5(strs: TemplateStringsArray, f: (n: number) => void): number;
69 function fn5() { return undefined; } function
70 fn5 `${ (n) => n.toFixed() }`; // will error; 'n' should have type 'string'.
71 fn5 `${ (n) => n.substr(0) }`;
115 function fn5() { return undefined; }
116 fn5(__makeTemplateObject(["", ""], ["", ""]), function (n) { return n.toFixed(); }); // will error;…
117 fn5(__makeTemplateObject(["", ""], ["", ""]), function (n) { return n.substr(0); });
DoverloadResolutionConstructors.js96 interface fn5 {
100 var fn5: fn5; variable
101 var n = new fn5((n) => n.toFixed());
102 var s = new fn5((n) => n.substr(0));
188 var fn5; variable
189 var n = new fn5(function (n) { return n.toFixed(); });
190 var s = new fn5(function (n) { return n.substr(0); });
DoverloadResolution.js89 function fn5(f: (n: string) => void): string;
90 function fn5(f: (n: number) => void): number;
91 function fn5() { return undefined; } function
92 var n = fn5((n) => n.toFixed());
93 var s = fn5((n) => n.substr(0));
179 function fn5() { return undefined; }
180 var n = fn5(function (n) { return n.toFixed(); });
181 var s = fn5(function (n) { return n.substr(0); });
DfunctionNameConflicts.symbols36 function fn5() { }
37 >fn5 : Symbol(fn5, Decl(functionNameConflicts.ts, 16, 22))
39 var fn5;
40 >fn5 : Symbol(fn5, Decl(functionNameConflicts.ts, 19, 7))
DfunctionOverloadErrorsSyntax.symbols21 function fn5(x: string, ...y: any[], z: string);
22 >fn5 : Symbol(fn5, Decl(functionOverloadErrorsSyntax.ts, 5, 19), Decl(functionOverloadErrorsSyntax.…
27 function fn5() { }
28 >fn5 : Symbol(fn5, Decl(functionOverloadErrorsSyntax.ts, 5, 19), Decl(functionOverloadErrorsSyntax.…
DoverloadResolutionConstructors.types258 interface fn5 {
267 var fn5: fn5;
268 >fn5 : fn5
270 var n = new fn5((n) => n.toFixed());
272 >new fn5((n) => n.toFixed()) : string
273 >fn5 : fn5
281 var s = new fn5((n) => n.substr(0));
283 >new fn5((n) => n.substr(0)) : string
284 >fn5 : fn5
DtypeArgInferenceWithNull.symbols13 function fn5<T extends { x: string }>(n: T) { }
14 >fn5 : Symbol(fn5, Decl(typeArgInferenceWithNull.ts, 3, 10))
20 fn5({ x: null });
21 >fn5 : Symbol(fn5, Decl(typeArgInferenceWithNull.ts, 3, 10))
DfunctionNameConflicts.js20 function fn5() { } function
21 var fn5;
45 function fn5() { }
46 var fn5;
DtypeArgInferenceWithNull.js7 function fn5<T extends { x: string }>(n: T) { }
8 fn5({ x: null });
18 function fn5(n) { } function
19 fn5({ x: null });
DenumMemberReduction.js36 export function fn5(optionalEnum?: MyStringEnum) { function
48 exports.fn6 = exports.fn5 = exports.fn4 = exports.fn3 = exports.fn2 = exports.fn = void 0;
83 function fn5(optionalEnum) {
86 exports.fn5 = fn5;
DfunctionNameConflicts.errors.txt9 …es/conformance/functions/functionNameConflicts.ts(19,14): error TS2300: Duplicate identifier 'fn5'.
10 …ses/conformance/functions/functionNameConflicts.ts(20,9): error TS2300: Duplicate identifier 'fn5'.
49 function fn5() { }
51 !!! error TS2300: Duplicate identifier 'fn5'.
52 var fn5;
54 !!! error TS2300: Duplicate identifier 'fn5'.
DtypeArgInferenceWithNull.types13 function fn5<T extends { x: string }>(n: T) { }
14 >fn5 : <T extends { x: string; }>(n: T) => void
18 fn5({ x: null });
19 >fn5({ x: null }) : void
20 >fn5 : <T extends { x: string; }>(n: T) => void
DfunctionNameConflicts.types36 function fn5() { }
37 >fn5 : () => void
39 var fn5;
40 >fn5 : any
Dwitness.js101 function fn5() { function
103 return new a(fn5);
105 var fn5r = fn5(); // fn5r: should be 'any', but is 'number'
231 function fn5() {
233 return new a(fn5);
235 var fn5r = fn5(); // fn5r: should be 'any', but is 'number'
DfunctionOverloadErrorsSyntax.types21 function fn5(x: string, ...y: any[], z: string);
22 >fn5 : (x: string, ...y: any[], z: string) => any
27 function fn5() { }
28 >fn5 : (x: string, ...y: any[], z: string) => any
DoverloadResolutionClassConstructors.symbols197 class fn5 {
198 >fn5 : Symbol(fn5, Decl(overloadResolutionClassConstructors.ts, 87, 20))
211 new fn5((n) => n.toFixed());
212 >fn5 : Symbol(fn5, Decl(overloadResolutionClassConstructors.ts, 87, 20))
216 new fn5((n) => n.substr(0));
217 >fn5 : Symbol(fn5, Decl(overloadResolutionClassConstructors.ts, 87, 20))
223 new fn5((n) => n.blah); // Error
224 >fn5 : Symbol(fn5, Decl(overloadResolutionClassConstructors.ts, 87, 20))
/third_party/typescript/tests/cases/conformance/expressions/functionCalls/
DoverloadResolution.ts88 function fn5(f: (n: string) => void): string; function
89 function fn5(f: (n: number) => void): number;
90 function fn5() { return undefined; }
91 var n = fn5((n) => n.toFixed());
92 var s = fn5((n) => n.substr(0));
DoverloadResolutionConstructors.ts95 interface fn5 { interface
99 var fn5: fn5; variable
100 var n = new fn5((n) => n.toFixed());
101 var s = new fn5((n) => n.substr(0));
DoverloadResolutionClassConstructors.ts91 class fn5 { class
96 new fn5((n) => n.toFixed());
97 new fn5((n) => n.substr(0));
98 new fn5((n) => n.blah); // Error
/third_party/typescript/tests/cases/conformance/es6/templates/
DtaggedTemplateStringsWithOverloadResolution3_ES6.ts67 function fn5(strs: TemplateStringsArray, f: (n: string) => void): string; function
68 function fn5(strs: TemplateStringsArray, f: (n: number) => void): number;
69 function fn5() { return undefined; }
70 fn5 `${ (n) => n.toFixed() }`; // will error; 'n' should have type 'string'.
71 fn5 `${ (n) => n.substr(0) }`;
DtaggedTemplateStringsWithOverloadResolution3.ts67 function fn5(strs: TemplateStringsArray, f: (n: string) => void): string; function
68 function fn5(strs: TemplateStringsArray, f: (n: number) => void): number;
69 function fn5() { return undefined; }
70 fn5 `${ (n) => n.toFixed() }`; // will error; 'n' should have type 'string'.
71 fn5 `${ (n) => n.substr(0) }`;
/third_party/skia/resources/sksl/inliner/
DExponentialGrowth.sksl7 void fn5() { fn4(); fn4(); fn4(); }
8 void fn6() { fn5(); fn5(); fn5(); }

1234