| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | GenericBridges_01.ets | 17 f2(v: B<T>): B<T>; 23 f2(v: C<T>): C<T> { return new C<T>(); } 24 f2(v: B<T>): B<T> { 25 return this.f2(v as C<T>); 38 f2(v: D): D { return new D(); } 62 f2(v: E<U>): E<U> { return new E<U>(); } 71 assert (c.f2(c).f1(0) == 7); 78 assert (c.f2(c).f1(0) == 8); 86 assert (c.f2(c).f1("ah") == "oh"); 90 assert (c.f2(c).f1(a) == "oh");
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/05.field_declarations/01.static_fields/ |
| D | static_field_declaration4.sts | 43 let f2: Func = a2.getF() 44 assert f2(22) == 55 46 assert f1 === f2 52 f2 = a2.getF() 53 assert f2(22) == 23 55 assert f1 === f2
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/assn_var/ |
| D | assn-var-n2.params.yaml | 129 type F2 = (p: A) => A throws 135 function f2(p: A): A throws { 142 function foo(p: F1): F2 { 143 return f2 145 type: '(p: F2) => F2' 151 type F2 = (p: A) => A throws 157 function f2(p: A): A throws { 164 function foo(p: F1): F2 { 165 return f2 173 type F2 = (p: A) => A throws [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/comp_arr/ |
| D | comp-arr-n2.params.yaml | 129 type F2 = (p: A) => A throws 135 function f2(p: A): A throws { 142 function foo(p: F1): F2 { 143 return f2 145 type: '(p: F2) => F2' 151 type F2 = (p: A) => A throws 157 function f2(p: A): A throws { 164 function foo(p: F1): F2 { 165 return f2 173 type F2 = (p: A) => A throws [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/decl_field/ |
| D | decl-field-n2.params.yaml | 129 type F2 = (p: A) => A throws 135 function f2(p: A): A throws { 142 function foo(p: F1): F2 { 143 return f2 145 type: '(p: F2) => F2' 151 type F2 = (p: A) => A throws 157 function f2(p: A): A throws { 164 function foo(p: F1): F2 { 165 return f2 173 type F2 = (p: A) => A throws [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/call_cons/ |
| D | call-cons-n2.params.yaml | 129 type F2 = (p: A) => A throws 135 function f2(p: A): A throws { 142 function foo(p: F1): F2 { 143 return f2 145 type: '(p: F2) => F2' 151 type F2 = (p: A) => A throws 157 function f2(p: A): A throws { 164 function foo(p: F1): F2 { 165 return f2 173 type F2 = (p: A) => A throws [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/call_lmbd/ |
| D | call-lmbd-n2.params.yaml | 129 type F2 = (p: A) => A throws 135 function f2(p: A): A throws { 142 function foo(p: F1): F2 { 143 return f2 145 type: '(p: F2) => F2' 151 type F2 = (p: A) => A throws 157 function f2(p: A): A throws { 164 function foo(p: F1): F2 { 165 return f2 173 type F2 = (p: A) => A throws [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/comp_obj/ |
| D | comp-clss-n2.params.yaml | 129 type F2 = (p: A) => A throws 135 function f2(p: A): A throws { 142 function foo(p: F1): F2 { 143 return f2 145 type: '(p: F2) => F2' 151 type F2 = (p: A) => A throws 157 function f2(p: A): A throws { 164 function foo(p: F1): F2 { 165 return f2 173 type F2 = (p: A) => A throws [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/call_func/ |
| D | call-func-n2.params.yaml | 129 type F2 = (p: A) => A throws 135 function f2(p: A): A throws { 142 function foo(p: F1): F2 { 143 return f2 145 type: '(p: F2) => F2' 151 type F2 = (p: A) => A throws 157 function f2(p: A): A throws { 164 function foo(p: F1): F2 { 165 return f2 173 type F2 = (p: A) => A throws [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/decl_var/ |
| D | decl-var-n2.params.yaml | 129 type F2 = (p: A) => A throws 135 function f2(p: A): A throws { 142 function foo(p: F1): F2 { 143 return f2 145 type: '(p: F2) => F2' 151 type F2 = (p: A) => A throws 157 function f2(p: A): A throws { 164 function foo(p: F1): F2 { 165 return f2 173 type F2 = (p: A) => A throws [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/call_meth/ |
| D | call-meth-n2.params.yaml | 129 type F2 = (p: A) => A throws 135 function f2(p: A): A throws { 142 function foo(p: F1): F2 { 143 return f2 145 type: '(p: F2) => F2' 151 type F2 = (p: A) => A throws 157 function f2(p: A): A throws { 164 function foo(p: F1): F2 { 165 return f2 173 type F2 = (p: A) => A throws [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+strProp+top+export/04_class_cases/02_class_declaration/ |
| D | 03_extends_implements_expected.txt | 35 let f2 = new e2(); 36 assert(f2.g2 === 0); 37 assert(f2.h2() === 5); 38 assert(f2.i2 === 1); 39 assert(f2.j2() === 10);
|
| /arkcompiler/ets_runtime/test/jittest/string_length/ |
| D | string_length.ts | 32 function f2() { function 40 f2(); 41 ArkTools.jitCompileAsync(f2); 42 print(ArkTools.waitJitCompileFinish(f2)) 44 print(f2())
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+top+export/04_class_cases/02_class_declaration/ |
| D | 03_extends_implements_expected.txt | 35 let f2 = new e2(); 36 assert(f2.g2 === 0); 37 assert(f2.h2() === 5); 38 assert(f2.i2 === 1); 39 assert(f2.j2() === 10);
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+export/12_decorator/ |
| D | 01_decorator_01_expected.txt | 23 let f2: MethodDecorator = () => { methosNum++; }; 26 function f21(c: string): MethodDecorator { assert(c === "1"); return f2; } 29 type f2 = string; 34 @f2 37 @f2 41 @f2
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+strProp+export/12_decorator/ |
| D | 01_decorator_01_expected.txt | 23 let f2: MethodDecorator = () => { methosNum++; }; 26 function f21(c: string): MethodDecorator { assert(c === "1"); return f2; } 29 type f2 = string; 34 @f2 37 @f2 41 @f2
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp/12_decorator/ |
| D | 01_decorator_01_expected.txt | 23 let f2: MethodDecorator = () => { methosNum++; }; 26 function f21(c: string): MethodDecorator { assert(c === "1"); return f2; } 29 type f2 = string; 34 @f2 37 @f2 41 @f2
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp+export/12_decorator/ |
| D | 01_decorator_01_expected.txt | 23 let f2: MethodDecorator = () => { methosNum++; }; 26 function f21(c: string): MethodDecorator { assert(c === "1"); return f2; } 29 type f2 = string; 34 @f2 37 @f2 41 @f2
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/default/12_decorator/ |
| D | 01_decorator_01_expected.txt | 23 let f2: MethodDecorator = () => { methosNum++; }; 26 function f21(c: string): MethodDecorator { assert(c === "1"); return f2; } 29 type f2 = string; 34 @f2 37 @f2 41 @f2
|
| /arkcompiler/ets_frontend/arkguard/test/combinations/basic_grammar/12_decorator/ |
| D | 01_decorator_01.ts | 27 let f2:MethodDecorator = () => {methosNum++;}; variable 31 function f21(b:string):MethodDecorator {assert(b === "1");return f2} 35 type f2 = string; alias 41 @f2 44 @f2 48 @f2
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+strProp/12_decorator/ |
| D | 01_decorator_01_expected.txt | 23 let f2: MethodDecorator = () => { methosNum++; }; 26 function f21(c: string): MethodDecorator { assert(c === "1"); return f2; } 29 type f2 = string; 34 @f2 37 @f2 41 @f2
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop/12_decorator/ |
| D | 01_decorator_01_expected.txt | 23 let f2: MethodDecorator = () => { methosNum++; }; 26 function f21(c: string): MethodDecorator { assert(c === "1"); return f2; } 29 type f2 = string; 34 @f2 37 @f2 41 @f2
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/export/12_decorator/ |
| D | 01_decorator_01_expected.txt | 23 let f2: MethodDecorator = () => { methosNum++; }; 26 function f21(c: string): MethodDecorator { assert(c === "1"); return f2; } 29 type f2 = string; 34 @f2 37 @f2 41 @f2
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | recursive_types.sts | 83 type F2 = (a: F2 | number | F2[]) => F2 | Array<F2 | Array<(F2 | string)[]> | string>; 84 (fn: () => F2) => { let x = fn() }
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/dynamic_import_tests/ |
| D | dynamic_decl_import.sts | 26 override f2(p: double): string { 34 let f2: double = A.bar() 37 A.f2 = f2
|