| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | ArrowArity.ets | 49 let f1 = (a1: S) => "/f1:" + a1 54 xassert(p_12call(f1, args), "/f1:a/f1:a") 56 xassert(p__2call(f1, args), "/f1:a") 61 xassert(r_1_call(f1, args), "/f1:a/f1:a") 69 let f1 = (a1: S, a2?: S) => "/f1:" + a1 + tou(a2) 74 xassert(p_12call(f1, args), "/f1:au/f1:ab") 76 xassert(p__2call(f1, args), "/f1:ab") 81 xassert(r_1_call(f1, args), "/f1:au/f1:ab") 88 let f1 = (a1: S, a2: S = "y") => "/f1:" + a1 + a2 93 xassert(p_12call(f1, args), "/f1:ay/f1:ab") [all …]
|
| D | ternary_operators_test.ets | 20 function f1(b?: boolean | string | null | int | object): string { 58 assertEQ(f1(true), "not good"); 59 assertEQ(f1(false), "good"); 60 assertEQ(f1("false"), "not good"); 61 assertEQ(f1("true"), "not good"); 62 assertEQ(f1(undefined), "good"); 63 assertEQ(f1(null), "good"); 64 assertEQ(f1(""), "good"); 65 assertEQ(f1("Hello World"), "not good"); 66 assertEQ(f1(0), "good"); [all …]
|
| D | StrictEquals.ets | 17 type F1<T> = (a:T, b:T) => void 51 let f1 = (a:Int, b:Int) => { a=a-b; } 54 assertEQ(equ<F1<Int>>(f1, f1), true) 55 assertEQ(equ<F1<Int>>(f1, f2), false) 56 assertEQ(equs<F1<Int>>(f1, f1), true) 57 assertEQ(equs<F1<Int>>(f1, f2), false)
|
| D | GenericBridges_02.ets | 22 f1(v: T): T { 64 f1(v: string): string { 65 return "D.f1"; 68 f1(v: Numeric|string|C<Int, W>): string { 69 return this.f1(v as string); 72 f1(v: Int): Int { 123 f1(v: U): Integral { 147 assertEQ(c.f1(0), 7) 148 assertEQ(c.f2(c).f1(0), 7) 154 assertEQ(c.f1(0), 8) [all …]
|
| D | lambda_with_restparameter_optinal_fixedarray.ets | 17 let f1 = (a?:String, b?:String, ...args:FixedArray<String>)=>{ 26 f1("000","111","222","333") 27 f1("000","111","222") 28 f1("000","111") 29 f1("000") 30 f1()
|
| D | lambda_with_restparameter_optinal.ets | 17 let f1 = (a?:String, b?:String, ...args:String[])=>{ 26 f1("000","111","222","333") 27 f1("000","111","222") 28 f1("000","111") 29 f1("000") 30 f1()
|
| D | GenericBridges_01.ets | 21 f1(v: T): T { return v; } 35 f1(v: string): string { return "oh"; } 36 f1(v: Int): Int { return 7; } 52 f1(v: U): Integral { 70 assert (c.f1(0) == 7); 71 assert (c.f2(c).f1(0) == 7); 77 assert (c.f1(0) == 8); 78 assert (c.f2(c).f1(0) == 8); 85 assert (c.f1("ah") == "oh"); 86 assert (c.f2(c).f1("ah") == "oh"); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/function_type_with_receiver/ |
| D | extensionFunctionTypeGeneric.ets | 30 let f1: FB<string> = bar; 33 assertEQ(b.f1("world"), "Hello!world") 34 assertEQ(f1(b, "world"), "Hello!world") 38 f1 = bar; 40 assertEQ(b.f1("world"), "Hello!world") 41 assertEQ(f1(b, "world"), "Hello!world") 45 f1 = f2; 46 assertEQ(b.f1("world"), "Hello!world") 47 assertEQ(f1(b, "world"), "Hello!world") 49 f2 = f1;
|
| D | extensionFunctionType.ets | 20 type F1 = (this: A) => boolean; 26 let f1: F1 = foo; 29 assertTrue(a.f1()) 30 assertTrue(f1(a))
|
| D | extensionFunctionTypeAssignedNormalFunc.ets | 19 type F1 = (this: A) => boolean; 26 let f1: F1 = goo; 27 a.f1(); 28 f1(a);
|
| D | extensionFunctionTypeCompatible.ets | 20 type F1 = (this: A) => boolean; 31 let f1: F1 = foo; 32 f1 = goo; 36 f1 = f2;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-common-tests/import_chain_expression/ |
| D | d.ets | 21 f1(): string; 22 f1(s: string) : string 25 f1(): string { 28 f1(s: string): string { 35 return aa?.f1('hello') 40 return aa?.f1()
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/lambda_with_receiver/ |
| D | lambda_with_receiver_generics1.ets | 26 let f1: FB<string> = (this: B<string>, x: string): string => {return this.value + x;}; 29 assertEQ(b.f1("world"), "Hello!world") 30 assertEQ(f1(b, "world"), "Hello!world") 34 f1 = f2; 35 assertEQ(b.f1("world"), "Hello!world") 36 assertEQ(f1(b, "world"), "Hello!world") 38 f2 = f1;
|
| /arkcompiler/ets_runtime/test/moduletest/icnotfoundtest/ |
| D | icnotfoundtest.js | 157 class F1 {} class in Test6 158 let f1 = new F1(); 159 let P1 = F1.prototype; 167 add(f1.toNumber, "233"); 169 f1.toNumber = function (str) { 179 class F1 {} class in Test7 180 let f1 = new F1(); 181 let P1 = F1.prototype; 189 add(f1.toNumber, "233"); 201 class F1 {} class in Test8 [all …]
|
| /arkcompiler/ets_runtime/test/aottest/icnotfound/ |
| D | icnotfound.js | 157 class F1 {} class in Test6 158 let f1 = new F1(); 159 let P1 = F1.prototype; 167 add(f1.toNumber, "233"); 169 f1.toNumber = function (str) { 179 class F1 {} class in Test7 180 let f1 = new F1(); 181 let P1 = F1.prototype; 189 add(f1.toNumber, "233"); 201 class F1 {} class in Test8 [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | class_late_initialization_with_invalid_type_04.ets | 17 f1!: T 21 f1!: string 25 f1!: T //OK 29 f1!: T //OK 33 f1!: T // cte
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp+top/17_declaration/ |
| D | 01_declaration_01_expected.txt | 20 f1: number; 25 f1: number; 30 declare function f1(c: C1, d: { 52 f1: number; 57 f1: number; 62 function f1(a: ns.C1, b: {
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+strProp/17_declaration/ |
| D | 01_declaration_01_expected.txt | 20 f1: number; 25 f1: number; 30 declare function f1(c: C1, d: { 52 f1: number; 57 f1: number; 62 function f1(a: ns.C1, b: {
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/top/17_declaration/ |
| D | 01_declaration_01_expected.txt | 20 f1: number; 25 f1: number; 30 declare function f1(c: C1, d: { 52 f1: number; 57 f1: number; 62 function f1(a: ns.C1, b: {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/05.field_declarations/01.static_fields/ |
| D | static_field_declaration4.ets | 39 let f1: Func = a1.getF() 40 assertEQ( f1(11), 44 ) 46 assertTrue( f1 === f2 ) 49 f1 = a1.getF() 50 assertEQ( f1(11), 12 ) 55 assertTrue( f1 === f2 )
|
| /arkcompiler/ets_frontend/arkguard/test/combinations/basic_grammar/17_declaration/ |
| D | 01_declaration_01.d.ts | 23 f1:number; property in C1 29 f1:number; property 36 declare function f1(a:C1, b:{a:E2}):{a:t} function 48 f1:number; property in ns.C1 54 f1:number; property 60 function f1(a:ns.C1, b:{a:ns.E2}):{a:ns.t} function
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp/17_declaration/ |
| D | 01_declaration_01_expected.txt | 20 f1: number; 25 f1: number; 30 declare function f1(c: C1, d: { 52 f1: number; 57 f1: number; 62 function f1(a: ns.C1, b: {
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/default/17_declaration/ |
| D | 01_declaration_01_expected.txt | 20 f1: number; 25 f1: number; 30 declare function f1(c: C1, d: { 52 f1: number; 57 f1: number; 62 function f1(a: ns.C1, b: {
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop/17_declaration/ |
| D | 01_declaration_01_expected.txt | 20 f1: number; 25 f1: number; 30 declare function f1(c: C1, d: { 52 f1: number; 57 f1: number; 62 function f1(a: ns.C1, b: {
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+top/17_declaration/ |
| D | 01_declaration_01_expected.txt | 20 f1: number; 25 f1: number; 30 declare function f1(c: C1, d: { 52 f1: number; 57 f1: number; 62 function f1(a: ns.C1, b: {
|