test274
auto test274 =
q{--- test274.vx
// named arguments with default arguments
i32 func(i32 param1, i32 param2, i32 param3 = 3) { return param1 * 40 + param2 * 20 + param3; }
i32 call_0() { return func(1, 2); }
i32 call_1() { return func(1, 2, 3); }
i32 call_2() { return func(param1: 1, 2); }
i32 call_3() { return func(1, param2: 2); }
i32 call_4() { return func(param1: 1, param2: 2); }
i32 call_5() { return func(param2: 2, param1: 1); }
};
tests passing
functionsvariables