/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | privacyImport.ts | 25 export function f1() { 37 export function f1() { 49 export let m1_im1_private_v3_public = m1_im1_private.f1; 50 export let m1_im1_private_v4_public = m1_im1_private.f1(); 53 let m1_im1_private_v3_private = m1_im1_private.f1; 54 let m1_im1_private_v4_private = m1_im1_private.f1(); 60 export let m1_im2_private_v3_public = m1_im2_private.f1; 61 export let m1_im2_private_v4_public = m1_im2_private.f1(); 64 let m1_im2_private_v3_private = m1_im2_private.f1; 65 let m1_im2_private_v4_private = m1_im2_private.f1(); [all …]
|
D | unionAndIntersectionInference2.ts | 21 declare function f1<T>(x: T | string): T; 39 f1(a1); // string 40 AssertType(f1(a1), "string"); 41 AssertType(f1, "<T>(union) => T"); 44 f1(b1); // string[] 45 AssertType(f1(b1), "string[]"); 46 AssertType(f1, "<T>(union) => T"); 49 f1(c1); // string[] 50 AssertType(f1(c1), "string[]"); 51 AssertType(f1, "<T>(union) => T"); [all …]
|
D | constructorOverloads2.ts | 42 let f1 = new Foo("hey"); variable 43 AssertType(f1, "Foo"); 54 let f3 = new Foo(f1); 56 AssertType(new Foo(f1), "Foo"); 58 AssertType(f1, "Foo"); 60 let f4 = new Foo([f1,f2,f3]); 62 AssertType(new Foo([f1,f2,f3]), "Foo"); 64 AssertType([f1,f2,f3], "Foo[]"); 65 AssertType(f1, "Foo"); 69 f1.bar1(); [all …]
|
D | genericInferenceDefaultTypeParameter.ts | 28 declare function f1<T extends keyof Type = "a">(props: Type[T]): void; function 30 f1(event => { }); 31 AssertType(f1(event => { }), "void"); 32 AssertType(f1, "<T extends keyof Type = "a">(Type[T]) => void"); 36 f1<"a">(event => { }); 37 AssertType(f1<"a">(event => { }), "void"); 38 AssertType(f1, "<T extends keyof Type = "a">(Type[T]) => void"); 42 f1<"b">(event => { }); 43 AssertType(f1<"b">(event => { }), "void"); 44 AssertType(f1, "<T extends keyof Type = "a">(Type[T]) => void");
|
D | privacyGloImport.ts | 25 export function f1() { 37 export function f1() { 49 export let m1_im1_private_v3_public = m1_im1_private.f1; 50 export let m1_im1_private_v4_public = m1_im1_private.f1(); 53 let m1_im1_private_v3_private = m1_im1_private.f1; 54 let m1_im1_private_v4_private = m1_im1_private.f1(); 60 export let m1_im2_private_v3_public = m1_im2_private.f1; 61 export let m1_im2_private_v4_public = m1_im2_private.f1(); 64 let m1_im2_private_v3_private = m1_im2_private.f1; 65 let m1_im2_private_v4_private = m1_im2_private.f1(); [all …]
|
D | contravariantTypeAliasInference.ts | 24 declare let f1: Func1<string>; 25 AssertType(f1, "Func1<string>"); 30 declare function foo<T>(f1: Func1<T>, f2: Func1<T>): void; 32 foo(f1, f2); 33 AssertType(foo(f1, f2), "void"); 35 AssertType(f1, "Func1<string>"); 46 bar(f1, f2); 47 AssertType(bar(f1, f2), "void"); 49 AssertType(f1, "Func1<string>");
|
D | constEnum3.ts | 24 function f1(f: TestType) { } function 27 f1(TestType.foo) 28 AssertType(f1(TestType.foo), "void"); 29 AssertType(f1, "(TestType) => void"); 32 f1(TestType.bar) 33 AssertType(f1(TestType.bar), "void"); 34 AssertType(f1, "(TestType) => void");
|
D | unionTypeCallSignatures2.ts | 41 let f1: A | B | C; variable 42 AssertType(f1, "union"); 44 let n1 = f1(42); // number 46 AssertType(f1(42), "number"); 47 AssertType(f1, "union"); 50 let s1 = f1("abc"); // boolean | string | number 52 AssertType(f1("abc"), "union"); 53 AssertType(f1, "union"); 56 let a1 = f1([true, false]); // boolean[] 58 AssertType(f1([true, false]), "boolean[]"); [all …]
|
D | privacyInterface.ts | 24 private f1() { 52 f1(a1: C1_public); 79 f1(a1: C1_public); 90 private f1() { method in C1_public 118 f1(a1: C1_public); method 145 f1(a1: C1_public); method 154 private f1() { method in C5_public 182 f1(a1: C5_public); method 209 f1(a1: C5_public); method 218 f1(): number; method [all …]
|
D | inferTInParentheses.ts | 22 type F1 = (num: [number]) => void; 25 type T1 = F1 extends (...args: (infer T)) => void ? T : never; 26 type T2 = F1 extends (args: [...(infer T)]) => void ? T : never; 29 type T4 = F1 extends (...args: ((infer T))) => void ? T : never; 30 type T5 = F1 extends (args: [...((infer T))]) => void ? T : never; 33 type T7 = F1 extends (...args: ((((infer T))))) => void ? T : never; 34 type T8 = F1 extends (args: [...((((infer T))))]) => void ? T : never;
|
D | privacyGloInterface.ts | 24 private f1() { 52 f1(a1: C1_public); 79 f1(a1: C1_public); 88 private f1() { method in C5_public 106 f1(a1: C5_public); method 112 f1(): number; method 135 f1(): number; method
|
D | commentsInheritance.ts | 34 f1(): void; 53 public f1() { method in c1 99 /** c2 f1*/ 100 public f1() { method in c2 132 /** c3 f1*/ 133 public f1() { method in c3 186 /** i2 f1*/ 187 f1(): void; method 198 * i3 f1 200 f1(): void; method
|
D | nonNullableReductionNonStrict.ts | 26 function test<T>(f1: Transform1<T>, f2: Transform2<T>) { 27 f1?.("hello"); 28 AssertType(f1?.("hello"), "T"); 29 AssertType(f1, "(string) => T"); 38 function f1<T>(x: T | (string extends T ? null | undefined : never)) { function
|
D | nonNullableReduction.ts | 26 function test<T>(f1: Transform1<T>, f2: Transform2<T>) { 27 f1?.("hello"); 28 AssertType(f1?.("hello"), "union"); 29 AssertType(f1, "union"); 38 function f1<T>(x: T | (string extends T ? null | undefined : never)) { function
|
D | multiCallOverloads.ts | 27 let f1: ICallback = function(z?) { variable 28 AssertType(f1, "ICallback"); 43 load(f1) // ok 44 AssertType(load(f1), "void"); 46 AssertType(f1, "ICallback");
|
D | instanceofOperatorWithRHSIsSubtypeOfFunction.ts | 26 let f1: Function; variable 27 AssertType(f1, "Function"); 38 let r1 = x instanceof f1; variable 40 AssertType(x instanceof f1, "boolean"); 42 AssertType(f1, "Function");
|
D | es6ClassTest8.ts | 21 function f1(x:any) { 37 let b = f1(f1(bar)); 39 AssertType(f1(f1(bar)), "any"); 40 AssertType(f1, "(any) => any"); 41 AssertType(f1(bar), "any"); 42 AssertType(f1, "(any) => any");
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/exportAndImport-es5-amd/ |
D | m2.ts | 21 import f1 from "./m1"; 23 f1(); 24 AssertType(f1(), "void"); 25 AssertType(f1, "() => void");
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/exportAndImport-es3-amd/ |
D | m2.ts | 21 import f1 from "./m1"; 23 f1(); 24 AssertType(f1(), "void"); 25 AssertType(f1, "() => void");
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/exportAndImport-es3/ |
D | m2.ts | 21 import f1 from "./m1"; 23 f1(); 24 AssertType(f1(), "void"); 25 AssertType(f1, "() => void");
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/exportAndImport-es5/ |
D | m2.ts | 21 import f1 from "./m1"; 23 f1(); 24 AssertType(f1(), "void"); 25 AssertType(f1, "() => void");
|
/arkcompiler/ets_runtime/test/typeinfer/module_test/module_member_initialization/ |
D | module_member_initialization.ts | 20 let f1 = new foo1(); variable 22 AssertType(f1.b1, "(string, string) => string"); 23 AssertType(f1.b2, "number"); 24 AssertType(f1.b1("a", "b"), "string");
|
/arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
D | call.short.yaml | 50 .function void f1(%s) { 55 call.short f1%s 116 .function void f1(panda.String a0) { 121 call.short f1%s 154 .function void f1(%s) { 160 call.short f1%s 215 .function void f1() { 221 call.short f1 265 .function void f1(%s) { 270 call.short f1%s [all …]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/exportsAndImports4-amd/ |
D | t3.ts | 44 import f1, { default as f2 } from "./t1"; 45 f1; 46 AssertType(f1, "string"); 51 export { a, b, c, d, e1, e2, f1, f2 };
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/exportsAndImports4-es6/ |
D | t3.ts | 44 import f1, { default as f2 } from "./t1"; 45 f1; 46 AssertType(f1, "string"); 51 export { a, b, c, d, e1, e2, f1, f2 };
|