Home
last modified time | relevance | path

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

12345678910

/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/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 …]
Dcall-cons-n1.params.yaml68 type F2 = (p: A) => A throws
74 function f2(p: A): A throws {
81 function foo(p: F2): F1 throws {
87 type: '(p: F2) => F2'
/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 …]
Dcomp-clss-n1.params.yaml68 type F2 = (p: A) => A throws
74 function f2(p: A): A throws {
81 function foo(p: F2): F1 throws {
87 type: '(p: F2) => F2'
/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 …]
Dcall-lmbd-n1.params.yaml68 type F2 = (p: A) => A throws
74 function f2(p: A): A throws {
81 function foo(p: F2): F1 throws {
87 type: '(p: F2) => F2'
/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 …]
Dcall-func-n1.params.yaml68 type F2 = (p: A) => A throws
74 function f2(p: A): A throws {
81 function foo(p: F2): F1 throws {
87 type: '(p: F2) => F2'
/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 …]
Dcall-meth-n1.params.yaml68 type F2 = (p: A) => A throws
74 function f2(p: A): A throws {
81 function foo(p: F2): F1 throws {
87 type: '(p: F2) => F2'
/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 …]
Dcomp-arr-n1.params.yaml68 type F2 = (p: A) => A throws
74 function f2(p: A): A throws {
81 function foo(p: F2): F1 throws {
87 type: '(p: F2) => F2'
/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 …]
Ddecl-field-n1.params.yaml68 type F2 = (p: A) => A throws
74 function f2(p: A): A throws {
81 function foo(p: F2): F1 throws {
87 type: '(p: F2) => F2'
/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 …]
Ddecl-var-n1.params.yaml68 type F2 = (p: A) => A throws
74 function f2(p: A): A throws {
81 function foo(p: F2): F1 throws {
87 type: '(p: F2) => 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 …]
Dassn-var-n1.params.yaml68 type F2 = (p: A) => A throws
74 function f2(p: A): A throws {
81 function foo(p: F2): F1 throws {
87 type: '(p: F2) => F2'
/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/ets2panda/linter/test/
Drecursive_types.sts83 type F2 = (a: F2 | number | F2[]) => F2 | Array<F2 | Array<(F2 | string)[]> | string>;
84 (fn: () => F2) => { let x = fn() }
Ddynamic_object_literals.sts35 f2: [{c: 30}, {d: 40}],
41 f2: [{g: 50}]
47 foo({f2: 'abc', f3: 30})
52 f2: [{c: 30}, {d: 40}],
56 bar({f2: 'abc', f3: 30})
61 f2: {a: '11', b: 444, c: {f: {d: [1, 2]}}},
/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
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/coroutines/
Dasync_call.sts56 async function amd64_small(i1: int, i2: int, i3: int, i4: int, i5: int, f1: double, f2: double, f3:…
64 assert_eq(f2, 2.0);
75 async function amd64_large(i1: int, i2: int, i3: int, i4: int, i5: int, i6: int, f1: double, f2: do…
84 assert_eq(f2, 2.0);
116 async function arm32hf_small(i1: int, i2: int, i3: int, f1: double, f2: double, f3: double, f4: dou…
122 assert_eq(f2, 2.0);
133 async function arm32hf_large(i1: int, i2: int, i3: int, i4: int, f1: double, f2: double, f3: double…
140 assert_eq(f2, 2.0);
152 …i1: int, i2: int, i3: int, i4: int, i5: int, i6: int, i7: int, f1: double, f2: double, f3: double,…
162 assert_eq(f2, 2.0);
[all …]
/arkcompiler/ets_frontend/arkguard/test/grammar/shorthand/initializer/
Dforawaitof_1.ts21 const f2 = 0; constant
23 for await ({ xFnexp = f1, fnexp = f2 } of [{ xFnexp, fnexp }]) {
25 assert.strictEqual(fnexp, f2);

12345678910