/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | comparisonOperatorWithSubtypeObjectOnProperty.ts | 56 let b2: B2; variable 57 AssertType(b2, "B2"); 66 let ra2 = a2 < b2; 68 AssertType(a2 < b2, "boolean"); 70 AssertType(b2, "B2"); 78 let ra4 = b2 < a2; 80 AssertType(b2 < a2, "boolean"); 81 AssertType(b2, "B2"); 91 let rb2 = a2 > b2; 93 AssertType(a2 > b2, "boolean"); [all …]
|
D | functionLiterals.ts | 105 let b2: { variable 106 AssertType(b2, "{ func1<T>(T): number; func2: <T>(T) => number; func3: <T>(T) => number; }"); 122 b2.func1 = b2.func2; 123 AssertType(b2.func1 = b2.func2, "<T>(T) => number"); 124 AssertType(b2.func1, "<T>(T) => number"); 125 AssertType(b2.func2, "<T>(T) => number"); 127 b2.func1 = b2.func3; 128 AssertType(b2.func1 = b2.func3, "<T>(T) => number"); 129 AssertType(b2.func1, "<T>(T) => number"); 130 AssertType(b2.func3, "<T>(T) => number"); [all …]
|
D | comparisonOperatorWithSubtypeObjectOnIndexSignature.ts | 41 let b2: { [index: string]: Derived }; variable 42 AssertType(b2, "{ [string]: Derived; }"); 68 let r1a1 = a2 < b2; 70 AssertType(a2 < b2, "boolean"); 72 AssertType(b2, "{ [string]: Derived; }"); 92 let r1b1 = b2 < a2; 94 AssertType(b2 < a2, "boolean"); 95 AssertType(b2, "{ [string]: Derived; }"); 117 let r2a1 = a2 > b2; 119 AssertType(a2 > b2, "boolean"); [all …]
|
D | numericIndexingResults.ts | 212 let b2: { [x: number]: string; 1: string; "2": string; } = { 1: '', "2": '' variable 213 AssertType(b2, "{ [number]: string; 1: string; "2": string; }"); 232 let r1b = b2['1']; 234 AssertType(b2['1'], "string"); 235 AssertType(b2, "{ [number]: string; 1: string; "2": string; }"); 238 let r2b = b2['2']; 240 AssertType(b2['2'], "string"); 241 AssertType(b2, "{ [number]: string; 1: string; "2": string; }"); 244 let r3 = b2['3']; 246 AssertType(b2['3'], "string"); [all …]
|
D | numericEnumMappedType.ts | 33 const b2: Bins2 = {}; constant 34 AssertType(b2, "Bins2"); 59 b2[1] = "a"; 60 AssertType(b2[1] = "a", "string"); 61 AssertType(b2[1], "union"); 62 AssertType(b2, "Bins2"); 66 b2[e2] = "b"; 67 AssertType(b2[e2] = "b", "string"); 68 AssertType(b2[e2], "union"); 69 AssertType(b2, "Bins2");
|
D | comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts | 41 let b2: { new (x: string, y: number): string }; variable 42 AssertType(b2, "new (string, number) => string"); 94 let r1a2 = a2 < b2; 96 AssertType(a2 < b2, "boolean"); 98 AssertType(b2, "new (string, number) => string"); 130 let r1b2 = b2 < a2; 132 AssertType(b2 < a2, "boolean"); 133 AssertType(b2, "new (string, number) => string"); 167 let r2a2 = a2 > b2; 169 AssertType(a2 > b2, "boolean"); [all …]
|
D | comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts | 44 let b2: { new (x: string): number }; variable 45 AssertType(b2, "new (string) => number"); 91 let r1a2 = a2 < b2; 93 AssertType(a2 < b2, "boolean"); 95 AssertType(b2, "new (string) => number"); 127 let r1b2 = b2 < a2; 129 AssertType(b2 < a2, "boolean"); 130 AssertType(b2, "new (string) => number"); 164 let r2a2 = a2 > b2; 166 AssertType(a2 > b2, "boolean"); [all …]
|
D | comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts | 47 let b2: { fn(x: string): number }; variable 48 AssertType(b2, "{ fn(string): number; }"); 103 let r1a2 = a2 < b2; 105 AssertType(a2 < b2, "boolean"); 107 AssertType(b2, "{ fn(string): number; }"); 139 let r1b2 = b2 < a2; 141 AssertType(b2 < a2, "boolean"); 142 AssertType(b2, "{ fn(string): number; }"); 176 let r2a2 = a2 > b2; 178 AssertType(a2 > b2, "boolean"); [all …]
|
D | comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts | 44 let b2: { fn(x: string, y: number): string }; variable 45 AssertType(b2, "{ fn(string, number): string; }"); 107 let r1a2 = a2 < b2; 109 AssertType(a2 < b2, "boolean"); 111 AssertType(b2, "{ fn(string, number): string; }"); 143 let r1b2 = b2 < a2; 145 AssertType(b2 < a2, "boolean"); 146 AssertType(b2, "{ fn(string, number): string; }"); 180 let r2a2 = a2 > b2; 182 AssertType(a2 > b2, "boolean"); [all …]
|
D | classStaticBlock10targetes5.ts | 33 const b2 = 2; 34 AssertType(b2, "int"); 60 const b2 = 222; constant 61 AssertType(b2, "int"); 81 const b2 = 222; 82 AssertType(b2, "int");
|
D | classStaticBlock10targetes2015.ts | 33 const b2 = 2; 34 AssertType(b2, "int"); 60 const b2 = 222; constant 61 AssertType(b2, "int"); 81 const b2 = 222; 82 AssertType(b2, "int");
|
D | classStaticBlock10targetesnext.ts | 33 const b2 = 2; 34 AssertType(b2, "int"); 60 const b2 = 222; constant 61 AssertType(b2, "int"); 81 const b2 = 222; 82 AssertType(b2, "int");
|
D | classStaticBlock10targetes2022.ts | 33 const b2 = 2; 34 AssertType(b2, "int"); 60 const b2 = 222; constant 61 AssertType(b2, "int"); 81 const b2 = 222; 82 AssertType(b2, "int");
|
D | comparisonOperatorWithIdenticalObjects.ts | 87 let b2: B2; variable 88 AssertType(b2, "B2"); 121 let r1a3 = a2 < b2; 123 AssertType(a2 < b2, "boolean"); 125 AssertType(b2, "B2"); 163 let r1b3 = b2 < a2; 165 AssertType(b2 < a2, "boolean"); 166 AssertType(b2, "B2"); 206 let r2a3 = a2 > b2; 208 AssertType(a2 > b2, "boolean"); [all …]
|
D | assignmentCompatWithObjectMembers.ts | 40 let b2 = { foo: '' }; 59 a2 = b2; 60 b2 = a2; 81 let b2 = { foo: b2 }; variable 100 a2 = b2; 101 b2 = a2;
|
D | comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts | 40 let b2: { new (a: number, b: string): Base }; variable 41 AssertType(b2, "new (number, string) => Base"); 109 let r1a2 = a2 < b2; 111 AssertType(a2 < b2, "boolean"); 113 AssertType(b2, "new (number, string) => Base"); 163 let r1b2 = b2 < a2; 165 AssertType(b2 < a2, "boolean"); 166 AssertType(b2, "new (number, string) => Base"); 218 let r2a2 = a2 > b2; 220 AssertType(a2 > b2, "boolean"); [all …]
|
D | assignmentCompatWithObjectMembersNumericNames.ts | 62 let b2 = { 1: '' }; variable 63 AssertType(b2, "{ 1: string; }"); 138 a2 = b2; 139 AssertType(a2 = b2, "{ 1: string; }"); 141 AssertType(b2, "{ 1: string; }"); 143 b2 = a2; 144 AssertType(b2 = a2, "{ 1: string; }"); 145 AssertType(b2, "{ 1: string; }");
|
D | recursiveInitializer.ts | 70 let b2 = !!b2; 71 AssertType(b2, "any"); 72 AssertType(!!b2, "boolean"); 73 AssertType(!b2, "boolean"); 74 AssertType(b2, "any");
|
D | comparisonOperatorWithSubtypeObjectOnCallSignature.ts | 43 let b2: { fn(a: number, b: string): void }; variable 44 AssertType(b2, "{ fn(number, string): void; }"); 143 let r1a2 = a2 < b2; 145 AssertType(a2 < b2, "boolean"); 147 AssertType(b2, "{ fn(number, string): void; }"); 209 let r1b2 = b2 < a2; 211 AssertType(b2 < a2, "boolean"); 212 AssertType(b2, "{ fn(number, string): void; }"); 276 let r2a2 = a2 > b2; 278 AssertType(a2 > b2, "boolean"); [all …]
|
D | assignmentCompatWithObjectMembers3.ts | 62 let b2: T2 = { foo: '' }; variable 63 AssertType(b2, "T2"); 138 a2 = b2; 139 AssertType(a2 = b2, "T2"); 141 AssertType(b2, "T2"); 143 b2 = a2; 144 AssertType(b2 = a2, "S2"); 145 AssertType(b2, "T2");
|
D | assignmentCompatWithObjectMembers2.ts | 62 let b2 = { foo: '' }; variable 63 AssertType(b2, "{ foo: string; }"); 138 a2 = b2; 139 AssertType(a2 = b2, "{ foo: string; }"); 141 AssertType(b2, "{ foo: string; }"); 143 b2 = a2; 144 AssertType(b2 = a2, "{ foo: string; }"); 145 AssertType(b2, "{ foo: string; }");
|
D | destructuringObjectBindingPatternAndAssignment1ES6.ts | 43 let { b2: { b21 } = { b21: "string" } } = { b2: { b21: "world" } }; variable 44 AssertType(b2, "any"); 49 AssertType({ b2: { b21: "world" } }, "{ b2?: { b21: string; }; }"); 50 AssertType(b2, "{ b21: string; }");
|
D | destructuringObjectBindingPatternAndAssignment1ES5.ts | 43 let { b2: { b21 } = { b21: "string" } } = { b2: { b21: "world" } }; variable 44 AssertType(b2, "any"); 49 AssertType({ b2: { b21: "world" } }, "{ b2?: { b21: string; }; }"); 50 AssertType(b2, "{ b21: string; }");
|
/arkcompiler/ets_runtime/test/aottest/aot_compatibility_test/property_operation/ |
D | property_operation.ts | 46 let b2 = new B(1, 2); 47 print(b2.hasOwnProperty("y")); 48 print(b2.y); 49 b2.y = 3; 50 print(b2.y); 51 delete b2.y; 52 print(b2.hasOwnProperty("y"));
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/unusedImportWithSpread/ |
D | b2.ts | 23 const b2 = {} as never; 24 AssertType(b2, "never"); 33 ...b2, 34 AssertType(b2, "never");
|