Home
last modified time | relevance | path

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

12345678910>>...16

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/function_type_with_receiver/
DextensionFunctionTypeGeneric.ets31 let f2: FBS = bar;
35 assertEQ(b.f2("world"), "Hello!world")
36 assertEQ(f2(b, "world"), "Hello!world")
39 f2 = bar;
42 assertEQ(b.f2("world"), "Hello!world")
43 assertEQ(f2(b, "world"), "Hello!world")
45 f1 = f2;
49 f2 = f1;
50 assertEQ(b.f2("world"), "Hello!world")
51 assertEQ(f2(b, "world"), "Hello!world")
DextensionFunctionTypeCompatible.ets21 type F2 = (a: A) => boolean;
34 let f2: F2 = goo;
35 f2 = foo;
36 f1 = f2;
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/lambda_with_receiver/
Dlambda_with_receiver_generics1.ets27 let f2: FBS = (this: B<string>, x: string): string => {return this.value + x;};
31 assertEQ(b.f2("world"), "Hello!world")
32 assertEQ(f2(b, "world"), "Hello!world")
34 f1 = f2;
38 f2 = f1;
39 assertEQ(b.f2("world"), "Hello!world")
40 assertEQ(f2(b, "world"), "Hello!world")
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/
DMakeNormalFunctypeAsMethodCall.ets20 type F2 = (a: A) => boolean;
27 let f1: F2 = foo;
28 let f2: F2 = (this: A): boolean => { return this.value }
30 a./* @@ label2 */f2();
33 /* @@@ label2 Error TypeError: Property 'f2' does not exist on type 'A' */
/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");
DGenericBridges_02.ets17 f2(v: B<T>): B<T>;
26 f2(v: C<T, Z>): C<T, Z> {
30 f2(v: B<T>): B<T> {
31 return this.f2(v as C<T, Z>);
76 f2(v: D<W>): D<W> {
133 f2(v: E<U>): E<U> {
148 assertEQ(c.f2(c).f1(0), 7)
155 assertEQ(c.f2(c).f1(0), 8)
162 assertEQ(c.f2(c).f1("ah"), "D.f1")
163 assertEQ((c.f2(c as B<string>) as C<string, string>).f1("ah"), "D.f1")
DArrowArity.ets50 let f2 = (a1: S, a2: S) => "/f2:" + a1 + a2
57 xassert(p__2call(f2, args), "/f2:ab")
70 let f2 = (a1: S, a2: S) => "/f2:" + a1 + a2
77 xassert(p__2call(f2, args), "/f2:ab")
89 let f2 = (a1: S, a2: S) => "/f2:" + a1 + a2
96 xassert(p__2call(f2, args), "/f2:ab")
Dstring_literals_inference.ets33 function f2(a: "aa"|"bb"): "aa"|"bb" {
72 let y4 = f2(x4) // type of y4 is "aa"|"bb"
73 let z4 = f2(y4)
102 assertEQ(f2(x2), "bb")
104 assertEQ(f2(z), "bb")
107 let y3 = f2(x3[0]) // type of y3 is "aa"|"bb"
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/05.field_declarations/01.static_fields/
Dstatic_field_declaration4.ets43 let f2: Func = a2.getF()
44 assertEQ( f2(22), 55 )
46 assertTrue( f1 === f2 )
52 f2 = a2.getF()
53 assertEQ( f2(22), 23 )
55 assertTrue( f1 === f2 )
/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+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/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/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/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_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/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+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.ets83 type F2 = (a: F2 | number | F2[]) => F2 | Array<F2 | Array<(F2 | string)[]> | string>;
84 (fn: () => F2) => { let x = fn() }
Ddynamic_object_literals.ets35 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.ets26 override f2(p: double): string {
34 let f2: double = A.bar()
37 A.f2 = f2
/arkcompiler/ets_runtime/test/jittest/uncheck_float64_to_int32/
Duncheck_float64_to_int32.ts30 function f2(x) { function
37 f2(1.1);
38 ArkTools.jitCompileAsync(f2);
39 print(ArkTools.waitJitCompileFinish(f2));
40 f2(2.2);

12345678910>>...16