Home
last modified time | relevance | path

Searched refs:x2 (Results 1 – 25 of 114) sorted by relevance

12345

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DoverloadWithCallbacksWithDifferingOptionalityOnArgs.ts21 function x2(callback: (x?: number) => number);
22 function x2(callback: (x: string) => number);
23 function x2(callback: (x: any) => number) { }
24 x2(() => 1);
25 AssertType(x2(() => 1), "any");
26 AssertType(x2, "{ ((?number) => number): any; ((string) => number): any; }");
30 x2((x) => 1 );
31 AssertType(x2((x) => 1 ), "any");
32 AssertType(x2, "{ ((?number) => number): any; ((string) => number): any; }");
DoverloadOnConstNoStringImplementation.ts21 function x2(a: number, cb: (x: 'hi') => number);
22 function x2(a: number, cb: (x: 'bye') => number);
23 function x2(a: number, cb: (x: any) => number) {
61 x2(1, cb); // error
62 AssertType(x2(1, cb), "any");
63 AssertType(x2, "{ (number, ("hi") => number): any; (number, ("bye") => number): any; }");
67 x2(1, (x: 'hi') => 1); // error
68 AssertType(x2(1, (x: 'hi') => 1), "any");
69 AssertType(x2, "{ (number, ("hi") => number): any; (number, ("bye") => number): any; }");
75 x2(1, (x: string) => 1);
[all …]
DcollisionThisExpressionAndLocalVarInAccessors.ts23 let x2 = {
24 AssertType(x2, "{ doStuff: (any) => () => any; }");
48 let x2 = {
49 AssertType(x2, "{ doStuff: (any) => () => any; }");
78 let x2 = {
79 AssertType(x2, "{ doStuff: (any) => () => any; }");
103 let x2 = {
104 AssertType(x2, "{ doStuff: (any) => () => any; }");
DinstanceofOperatorWithLHSIsObject.ts26 let x2: Function; variable
27 AssertType(x2, "Function");
47 let r2 = b instanceof x2; variable
49 AssertType(b instanceof x2, "boolean");
51 AssertType(x2, "Function");
DanyAndUnknownHaveFalsyComponents.ts56 declare let x2: unknown; variable
57 AssertType(x2, "unknown");
59 const y2 = x2 && 3;
61 AssertType(x2 && 3, "unknown");
62 AssertType(x2, "unknown");
DinitializersWidened.ts38 let x2: null;
39 AssertType(x2, "null");
81 let x5 = null || x2;
83 AssertType(null || x2, "null");
85 AssertType(x2, "null");
DsourceMapValidationForIn.ts33 for (let x2 in String) variable
35 WScript.Echo(x2);
36 AssertType(WScript.Echo(x2), "void");
38 AssertType(x2, "string");
DarrayLiteral.ts49 let x2: number[] = [];
50 AssertType(x2, "number[]");
53 let x2: number[] = new Array(1);
54 AssertType(x2, "number[]");
DcollisionThisExpressionAndLocalVarInConstructor.ts23 let x2 = {
24 AssertType(x2, "{ doStuff: (any) => () => any; }");
52 let x2 = {
53 AssertType(x2, "{ doStuff: (any) => () => any; }");
DcompoundAssignmentLHSIsReference.ts38 function fn1(x2: number) {
39 x2 *= value;
40 AssertType(x2 *= value, "number");
41 AssertType(x2, "number");
44 x2 += value;
45 AssertType(x2 += value, "any");
46 AssertType(x2, "number");
DnoCollisionThisExpressionAndLocalVarInConstructor.ts23 let x2 = {
24 AssertType(x2, "{ doStuff: (any) => () => any; }");
52 let x2 = {
53 AssertType(x2, "{ doStuff: (any) => () => any; }");
DkeyofAndForIn.ts47 let x2 = obj[k2]; variable
48 AssertType(x2, "{ [P in K]: T; }[Extract<K, string>]");
79 let x2 = obj[k2];
80 AssertType(x2, "{ [P in keyof T]: T[P]; }[Extract<keyof T, string>]");
111 let x2 = obj[k2];
112 AssertType(x2, "{ [P in K]: T[P]; }[Extract<K, string>]");
DliteralTypes2.ts70 let x2 = -123;
71 AssertType(x2, "number");
171 let x2: -123 = -123;
172 AssertType(x2, "int");
259 let x2 = c2;
260 AssertType(x2, "union");
290 x2 = -123; property in C1
334 let x2: { a : 0 | 1, b: "foo" | "bar" } = { a: 1, b: "foo" };
335 AssertType(x2, "{ a: union; b: union; }");
370 let x2: (1 | "foo")[] = [1, "foo"];
[all …]
DinferenceOptionalProperties.ts28 declare let x2: { a?: string, b?: number | undefined }; variable
29 AssertType(x2, "{ a?: string; b?: union; }");
39 const y2 = test(x2);
41 AssertType(test(x2), "union");
43 AssertType(x2, "{ a?: string; b?: union; }");
DinferenceOptionalPropertiesToIndexSignatures.ts28 declare const x2: { a: string, b: number | undefined }; constant
29 AssertType(x2, "{ a: string; b: union; }");
49 let a2 = foo(x2); // string | number | undefined
51 AssertType(foo(x2), "union");
53 AssertType(x2, "{ a: string; b: union; }");
DinferenceOptionalPropertiesStrict.ts28 declare let x2: { a?: string, b?: number | undefined }; variable
29 AssertType(x2, "{ a?: string; b?: union; }");
39 const y2 = test(x2);
41 AssertType(test(x2), "union");
43 AssertType(x2, "{ a?: string; b?: union; }");
DassignmentLHSIsReference.ts33 function fn1(x2: number) {
34 x2 = value;
35 AssertType(x2 = value, "any");
36 AssertType(x2, "number");
DcontextualTypeWithUnionTypeCallSignatures.ts54 let x2: IWithCallSignatures | IWithCallSignatures2 = a => a.toString(); // Like iWithCallSignatures variable
55 AssertType(x2, "union");
61 let x2: IWithCallSignatures | IWithCallSignatures2 = a => a; // Like iWithCallSignatures2 variable
62 AssertType(x2, "union");
DcompoundExponentiationAssignmentLHSIsReference.ts33 function fn1(x2: number) {
34 x2 **= value;
35 AssertType(x2 **= value, "number");
36 AssertType(x2, "number");
DnoImplicitAnyDestructuringVarDeclaration2.ts112 let {x2 = undefined, y2 = undefined, z2 = undefined} = { x2: 1, y2: 2, z2: 3 }; // no error variable
113 AssertType(x2, "number");
119 AssertType({ x2: 1, y2: 2, z2: 3 }, "{ x2?: number; y2?: number; z2?: number; }");
120 AssertType(x2, "number");
Dnamespaces1.ts33 let x2: X.Y; variable
34 AssertType(x2, "X.Y");
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/systemObjectShorthandRename/
Dindex.ts23 const x2 = {x constant
24 AssertType(x2, "{ x: string; }");
31 const a = {x2
34 AssertType({x2}, "{ x2: { x: string; }; }");
36 AssertType(x2, "{ x: string; }");
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/mergedClassInterface/
Dfile1.ts42 x2: number; property in C5
60 c5.x2;
61 AssertType(c5.x2, "number");
/arkcompiler/ets_runtime/tools/circuit_viewer/src/ir/
DIrViewer.js282 drawSmallMap(nodes, x1, x2, y1, y2) { argument
283 if (x1 === x2 || y2 === y1) {
289 let sw = w / (x2 - x1);
451 let x2 = -9999;
460 if (n.pos.x + n.nameWidth > x2)
461 x2 = n.pos.x + n.nameWidth;
469 x2 = Math.max(mmx1[1] - this.offx_, x2) + Scr.logicw / 3;
474 x2: x2, property
478 let scrollW = x2 - x1;
495 this.drawSmallMap(nodes, x1, x2, y1, y2);
[all …]
/arkcompiler/ets_runtime/test/aottest/aot_compatibility_test/property_operation/
Dproperty_operation.ts21 x2?: number;
57 print(b3.x2);
60 print(b3.x2);

12345