/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | parserArrowFunctionExpression6.ts | 21 function foo(q: string, b: number) { 22 AssertType(true ? (q ? true : false) : (b = q.length, function() { }), "union"); 24 AssertType((q ? true : false), "boolean"); 25 AssertType(q ? true : false, "boolean"); 26 AssertType(q, "string"); 29 AssertType((b = q.length, function() { }), "() => void"); 30 AssertType(b = q.length, function() { }, "() => void"); 31 AssertType(b = q.length, "number"); 33 AssertType(q.length, "number"); 35 return true ? (q ? true : false) : (b = q.length, function() { });
|
D | intersectionOfUnionNarrowing.ts | 27 declare const q: X & AorB; constant 28 AssertType(q, "X & AorB"); 30 if (q.a !== undefined) { 31 q.a.aProp; 32 AssertType(q.a.aProp, "string"); 33 AssertType(q.a, "{ aProp: string; } & object"); 37 q.b.bProp; 38 AssertType(q.b.bProp, "string"); 39 AssertType(q.b, "{ bProp: string; } & object");
|
D | typeOfThisInFunctionExpression.ts | 59 let q: any; 60 AssertType(q, "any"); 62 let q = this; 63 AssertType(q, "any"); 67 let q: any; 68 AssertType(q, "any"); 70 let q = this; 71 AssertType(q, "any");
|
D | ambientDeclarations.ts | 44 declare function fn9(...q: {}[]); 45 declare function fn10<T>(...q: T[]); 52 static q; 66 q, enumerator 95 let q = M1.fn(); 96 AssertType(q, "number"); 103 let q;
|
D | freshLiteralTypesInIntersections.ts | 24 const q = func("x" as "x" | "y", ["x"]); 25 AssertType(q, "("x") => void"); 33 q("x"); 34 AssertType(q("x"), "void"); 35 AssertType(q, "("x") => void");
|
D | inferringAnyFunctionType5.ts | 21 function f<T extends { q: (p1: number) => number }>(p: T): T { 26 let v = f({ q: x => x }); 28 AssertType(f({ q: x => x }), "{ q: (number) => number; }"); 30 AssertType({ q: x => x }, "{ q: (number) => number; }"); 31 AssertType(q, "(number) => number");
|
D | declarationEmitExpressionInExtends.ts | 35 let q: B; variable 36 AssertType(q, "B"); 38 q.s; 39 AssertType(q.s, "string");
|
D | contextuallyTypedIife.ts | 187 (({ q }) => q)({ q : 13 }); 188 AssertType((({ q }) => q)({ q : 13 }), "number"); 189 AssertType((({ q }) => q), "({ q: number; }) => number"); 190 AssertType(({ q }) => q, "({ q: number; }) => number"); 191 AssertType(q, "number"); 192 AssertType(q, "number"); 193 AssertType({ q : 13 }, "{ q: number; }"); 194 AssertType(q, "number");
|
D | namedTupleMembers.ts | 139 declare let q: RecursiveTupleA; variable 140 AssertType(q, "RecursiveTupleA"); 145 q = r; 146 AssertType(q = r, "RecursiveTupleB"); 147 AssertType(q, "RecursiveTupleA"); 150 r = q; 151 AssertType(r = q, "RecursiveTupleA"); 153 AssertType(q, "RecursiveTupleA");
|
D | tsNoCheckForTypescript.ts | 30 q: number; property 34 q: string = "lol" // And so will this implements error property in Bet
|
D | privateVisibles.ts | 30 public meth() { let q = this.plet; 31 AssertType(q, "number");
|
D | objectSpreadRepeatedNullCheckPerf.ts | 38 readonly q?: string 51 …= undefined && { p: config.p.toString() }, ...config.q !== undefined && { q: config.q.toStr… 230 ...config.q !== undefined && { q: config.q.toString() }, 231 AssertType(config.q !== undefined && { q: config.q.toString() }, "union"); 232 AssertType(config.q !== undefined, "boolean"); 233 AssertType(config.q, "number"); 235 AssertType({ q: config.q.toString() }, "{ q: string; }"); 236 AssertType(q, "string"); 237 AssertType(config.q.toString(), "string"); 238 AssertType(config.q.toString, "(?union) => string"); [all …]
|
D | forLoopEndingMultilineComments.ts | 30 for (const q of a) { constant 31 AssertType(q, "any");
|
D | defaultIndexProps2.ts | 41 let q = "s"[0]; variable 42 AssertType(q, "string");
|
D | keywordField.ts | 44 let q = a["if"]; variable 45 AssertType(q, "string");
|
D | ambiguousOverloadResolution.ts | 24 declare function f(p: A, q: B): number; 25 declare function f(p: B, q: A): string;
|
D | defaultIndexProps1.ts | 30 let q = f["v"]; variable 31 AssertType(q, "string");
|
D | everyTypeAssignableToAny.ts | 88 let q: String; variable 89 AssertType(q, "String"); 161 a = q; 162 AssertType(a = q, "String"); 164 AssertType(q, "String");
|
D | discriminateObjectTypesOnly.ts | 29 const q: Thing2 = { toFixed: null }; constant 30 AssertType(q, "Thing2");
|
D | jsDeclarationsJSDocRedirectedLookups.ts | 103 /** @type {event} */const q = undefined; constant 104 AssertType(q, "union");
|
D | undefinedAssignableToEveryType.ts | 115 let q: String = undefined; variable 116 AssertType(q, "String");
|
D | nullAssignableToEveryType.ts | 115 let q: String = null; variable 116 AssertType(q, "String");
|
D | anyAssignableToEveryType.ts | 118 let q: String = a; variable 119 AssertType(q, "String");
|
/arkcompiler/ets_frontend/test/scripts/auto_xts_test/ |
D | run.bat | 27 del /q .\RKDevTool.zip 34 rd /s /q %var%\dayu200_xts 36 del /q %var%\dayu200_xts.tar.gz 59 if exist result (rd /s /q result)
|
/arkcompiler/toolchain/tooling/test/testcases/js/ |
D | local_variable_scope.js | 44 let q = 19;
|