Home
last modified time | relevance | path

Searched refs:T2 (Results 1 – 25 of 47) sorted by relevance

12

/arkcompiler/runtime_core/libark_defect_scan_aux/tests/
Dtest_helper.h24 template <typename T1, typename T2>
25 inline static void ExpectEqual(const T1 &left, const T2 &right) in ExpectEqual()
33 template <typename T1, typename T2>
34 inline static void ExpectNotEqual(const T1 &left, const T2 &right) in ExpectNotEqual()
36 if (left == static_cast<T2>(right)) { in ExpectNotEqual()
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DramdaToolsNoInfinite.ts96 type Concat<T1 extends any[], T2 extends any[]> =
97 Reverse<Reverse<T1> extends infer R ? Cast<R, any[]> : never, T2>;
110 type GapOf<T1 extends any[], T2 extends any[], TN extends any[], I extends any[]> =
112 ? Tools.Append<T2[Tools.Pos<I>], TN>
115 …interface GapsOfWorker<T1 extends any[], T2 extends any[], TN extends any[] = [], I extends any[] …
116 …0: GapsOf<T1, T2, GapOf<T1, T2, TN, I> extends infer G ? Tools.Cast<G, any[]> : never, Tools.Next<…
117 … 1: Tools.Concat<TN, Tools.Drop<Tools.Pos<I>, T2> extends infer D ? Tools.Cast<D, any[]> : never>;
119 …type GapsOf<T1 extends any[], T2 extends any[], TN extends any[] = [], I extends any[] = []> = Gap…
DpromiseVoidErrorCallback.ts25 interface T2 { interface
42 function f2(x: T1): T2 {
54 AssertType(f1() .then(f2, (e: Error) => { throw e;}) .then((x: T2) => { return { __t3: …
61 .then((x: T2) => {
63 AssertType((x: T2) => { return { __t3: x.__t2 + "bar" };}, "(T2) => { __t3: string; }");
DtupleTypeInference.ts25 all<T1, T2, T3>(x: [IPromise<T1>, IPromise<T2>, IPromise<T3>]): IPromise<[T1, T2, T3]>;
26 all<T1, T2>(x: [IPromise<T1>, IPromise<T2>]): IPromise<[T1, T2]>;
DsubtypingWithObjectMembersOptionality.ts43 interface T2 { interface
47 interface S2 extends T2 {
87 interface T2 { interface
91 interface S2 extends T2 {
DassignmentCompatWithObjectMembers.ts32 interface T2 { foo: string; }
34 let t2: T2;
73 interface T2 { foo: T2; } interface
75 let t2: T2;
DcircularTypeAliasForUnionWithInterface.ts37 let v2: T2;
40 type T2 = string | I2; alias
42 new (): T2;
DprivacyCheckOnTypeParameterReferenceInConstructorParameter.ts31 export class B<T2> {
32 constructor(parent: T2) { }
DoverloadsAndTypeArgumentArity.ts23 declare function Callbacks<T1, T2>(flags?: string): void;
24 declare function Callbacks<T1, T2, T3>(flags?: string): void;
DinferenceErasedSignatures.ts51 interface BaseType<T1, T2> {
54 useT2(r?: T2): void;
74 type T2 = GetT1<StructuralVersion>; // number alias
DkeyofInferenceLowerPriorityThanReturn.ts34 type MakeTable<T1 extends object, T2 extends object> = {
37 [P in keyof T2]: Col<Write, T2[P]>;
DsuperCallParameterContextualTyping1.ts21 class A<T1, T2> {
22 constructor(private map: (value: T1) => T2) {
DgenericClassesInModule2.ts44 export class B<T2> {
45 constructor(public parent: T2) { }
DbaseTypeWrappingInstantiationChain.ts25 class CBase<T2> extends CBaseBase<Wrapper<T2>> {
DtypeInferenceWithTupleType.ts117 declare function f1<T1, T2>(values: [T1[], T2[]]): T1;
118 declare function f2<T1, T2>(values: readonly [T1[], T2[]]): T1;
DsubtypingWithObjectMembersOptionality4.ts34 interface T2 { interface
38 interface S2 extends T2 {
DsubtypingWithObjectMembersOptionality3.ts34 interface T2 { interface
38 interface S2 extends T2 {
DassignmentCompatWithObjectMembers3.ts25 class T implements T2 { foo: string; }
33 interface T2 { foo: string; baz?: string } interface
37 let t2: T2;
62 let b2: T2 = { foo: '' };
DidentityRelationNeverTypes.ts48 type T2 = Equals<never, never>; // true
49 AssertType(T2, "boolean");
DgenericInstantiationEquivalentToObjectLiteral.ts21 interface Pair<T1, T2> { first: T1; second: T2; }
DtypeAliases.ts30 type T2 = string;
34 let x2: T2;
111 declare function foo13<T1 extends I13, T2 extends T13>(t1: T1, t2: T13): void;
/arkcompiler/ets_runtime/test/typeinfer/es2abc_feature/generics_multiple/
Dgenerics_multiple.ts19 class Test<T1, T2, T3, T4> {
21 value2:T2;
24 constructor(value1:T1, value2:T2, value3:T3, value4:T4){
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/dynamicNames/
Dmodule.ts39 export declare class T1 implements T2 {
44 export declare class T2 extends T1 { class
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-ts-mapped-type.ts18 type Type2<T2> = { +readonly [prop in keyof T2]+?: boolean; };
/arkcompiler/ets_runtime/test/typeinfer/es2abc_feature/type_alias/
Dtype_alias.ts26 type T2 = Test; alias
27 let inst:T2 = {value: 123, flag: true};

12