Home
last modified time | relevance | path

Searched full:f2 (Results 1 – 25 of 353) sorted by relevance

12345678910>>...15

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DGenericBridges_01.ets17 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/
Dstatic_field_declaration4.sts43 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/
Dassn-var-n2.params.yaml129 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/
Dcomp-arr-n2.params.yaml129 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/
Ddecl-field-n2.params.yaml129 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/
Dcall-cons-n2.params.yaml129 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/
Dcall-lmbd-n2.params.yaml129 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/
Dcomp-clss-n2.params.yaml129 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/
Dcall-func-n2.params.yaml129 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/
Ddecl-var-n2.params.yaml129 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/
Dcall-meth-n2.params.yaml129 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/
D03_extends_implements_expected.txt35 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/
Dstring_length.ts32 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/
D03_extends_implements_expected.txt35 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/
D01_decorator_01_expected.txt23 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/
D01_decorator_01_expected.txt23 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/
D01_decorator_01_expected.txt23 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/
D01_decorator_01_expected.txt23 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/
D01_decorator_01_expected.txt23 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/
D01_decorator_01.ts27 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/
D01_decorator_01_expected.txt23 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/
D01_decorator_01_expected.txt23 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/
D01_decorator_01_expected.txt23 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/
Drecursive_types.sts83 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/
Ddynamic_decl_import.sts26 override f2(p: double): string {
34 let f2: double = A.bar()
37 A.f2 = f2

12345678910>>...15