Home
last modified time | relevance | path

Searched refs:T1 (Results 1 – 25 of 54) sorted by relevance

123

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DinterfaceExtendsObjectIntersection.ts22 type T1 = { a: number };
23 type T2 = T1 & { b: number };
30 interface I1 extends T1 { x: string }
66 interface I20 extends Partial<T1> { x: string }
67 interface I21 extends Readonly<T1> { x: string }
68 interface I22 extends Identifiable<T1> { x: string }
69 interface I23 extends Identifiable<T1 & { b: number}> { x: string }
71 class C20 extends Constructor<Partial<T1>>() { x: string }
72 class C21 extends Constructor<Readonly<T1>>() { x: string }
73 class C22 extends Constructor<Identifiable<T1>>() { x: string }
[all …]
DgenericClassesInModule2.ts21 export class A<T1>{
22 constructor( public callback: (self: A<T1>) => void) {
29 AAA( callback: (self: A<T1>) => void) {
38 export interface C<T1>{
39 child: B<T1>;
40 (self: C<T1>): void;
41 new(callback: (self: C<T1>) => void)
DbaseTypeWrappingInstantiationChain.ts37 class C<T1> extends CBase<T1> {
39 new CBaseBase<Wrapper<T1>>(this);
40 AssertType(new CBaseBase<Wrapper<T1>>(this), "CBaseBase<Wrapper<T1>>");
45 new CBase<T1>(this); // Should not error, parameter is of type Parameter<Wrapper<T1>>
46 AssertType(new CBase<T1>(this), "CBase<T1>");
51 public method(t: Wrapper<T1>) { }
DmappedTypes1.ts51 declare function f1<T1>(): { [P in keyof T1]: void };
52 declare function f2<T1 extends string>(): { [P in keyof T1]: void };
53 declare function f3<T1 extends number>(): { [P in keyof T1]: void };
54 declare function f4<T1 extends Number>(): { [P in keyof T1]: void };
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]>;
27 all<T1>(x: [IPromise<T1>]): IPromise<[T1]>;
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[]> =
111 T1[Tools.Pos<I>] extends R.Placeholder
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<…
119 …type GapsOf<T1 extends any[], T2 extends any[], TN extends any[] = [], I extends any[] = []> = Gap…
120 Tools.Pos<I> extends Tools.Length<T1>
DcircularTypeAliasForUnionWithInterface.ts29 let v1: T1;
32 type T1 = string | I1; alias
34 (): T1;
DtypeInferenceWithTupleType.ts117 declare function f1<T1, T2>(values: [T1[], T2[]]): T1;
118 declare function f2<T1, T2>(values: readonly [T1[], T2[]]): T1;
DprivacyCheckOnTypeParameterReferenceInConstructorParameter.ts21 export class A<T1>{
22 constructor(callback: (self: A<T1>) => void) {
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> {
53 useT1(c: T1): void;
73 type T1 = GetT1<InheritedType>; // number alias
DpromiseVoidErrorCallback.ts21 interface T1 {
33 function f1(): Promise<T1> {
42 function f2(x: T1): T2 {
DkeyofInferenceLowerPriorityThanReturn.ts34 type MakeTable<T1 extends object, T2 extends object> = {
35 [P in keyof T1]: Col<Write, T1[P]>;
DarrayConcat3.ts23 function doStuff<T extends object, T1 extends T>(a: Array<Fn<T>>, b: Array<Fn<T1>>) {
DsuperCallParameterContextualTyping1.ts21 class A<T1, T2> {
22 constructor(private map: (value: T1) => T2) {
DtypeAliases.ts23 type T1 = number;
27 let x1: T1;
111 declare function foo13<T1 extends I13, T2 extends T13>(t1: T1, t2: T13): void;
DrestParameterAssignmentCompatibility.ts46 class T1 { class
51 let t1: T1;
DinferFromBindingPattern.ts92 declare function makeTuple<T1>(arg: T1): [T1];
DidentityRelationNeverTypes.ts44 type T1 = Equals<typeof state, never>; // true
45 AssertType(T1, "boolean");
DmappedTypeAndIndexSignatureRelation.ts24 type T1<T extends Record<PropertyKey, number>> = T; alias
25 type T2<U extends Record<PropertyKey, number>> = T1<Same<U>>;
/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()
27 if (left != static_cast<T1>(right)) { in ExpectEqual()
33 template <typename T1, typename T2>
34 inline static void ExpectNotEqual(const T1 &left, const T2 &right) in ExpectNotEqual()
/arkcompiler/ets_runtime/test/typeinfer/es2abc_feature/generics_multiple/
Dgenerics_multiple.ts19 class Test<T1, T2, T3, T4> {
20 value1:T1;
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 { class
44 export declare class T2 extends T1 {
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-ts-mapped-type.ts17 type Type1<T1> = { -readonly [prop in keyof T1]-?: boolean; };
/arkcompiler/ets_runtime/test/typeinfer/es2abc_feature/type_alias/
Dtype_alias.ts18 type T1 = string;
19 let a:T1 = "AOT";

123