diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de5d1eef25..a3017fd653 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,10 +116,10 @@ jobs: tcc -version ./v -cg -o v cmd/v # Make sure vtcc can build itself twice # ./v -silent test-compiler - - name: Fixed tests - run: ./v test-fixed - name: v self compilation run: ./v -o v2 cmd/v && ./v2 -o v3 cmd/v && ./v3 -o v4 cmd/v + - name: Fixed tests + run: ./v test-fixed - name: Test building v tools run: ./v build-tools - name: v doctor diff --git a/vlib/v/fmt/tests/anon_fn_expected.vv b/vlib/v/fmt/tests/anon_fn_expected.vv index 6f91666916..35641ee8ea 100644 --- a/vlib/v/fmt/tests/anon_fn_expected.vv +++ b/vlib/v/fmt/tests/anon_fn_expected.vv @@ -5,7 +5,7 @@ fn has_anon_fn() { an_fn_w_param := fn (s string) { println('I received $s') } - an_fn_w_multi_params := fn (s1, s2, s3 string) { + an_fn_w_multi_params := fn (s1 string, s2 string, s3 string) { println('I received $s1, $s2, $s3') } an_fn_w_multi_params2 := fn (s string, i int) { diff --git a/vlib/v/fmt/tests/anon_fn_input.vv b/vlib/v/fmt/tests/anon_fn_input.vv index 75bea91e14..8884991b59 100644 --- a/vlib/v/fmt/tests/anon_fn_input.vv +++ b/vlib/v/fmt/tests/anon_fn_input.vv @@ -6,7 +6,7 @@ fn has_anon_fn() { { println('I received $s') } - an_fn_w_multi_params := fn (s1, s2, s3 string) { + an_fn_w_multi_params := fn (s1 string, s2 string, s3 string) { println('I received $s1, $s2, $s3') } an_fn_w_multi_params2 :=fn (s string, i int) { diff --git a/vlib/v/fmt/tests/array_newlines_keep.vv b/vlib/v/fmt/tests/array_newlines_keep.vv index a355ac84cf..11fded188f 100644 --- a/vlib/v/fmt/tests/array_newlines_keep.vv +++ b/vlib/v/fmt/tests/array_newlines_keep.vv @@ -1,4 +1,4 @@ -fn make_flag(a, b, c string) string { +fn make_flag(a string, b string, c string) string { return '' } diff --git a/vlib/v/fmt/tests/expressions_expected.vv b/vlib/v/fmt/tests/expressions_expected.vv index a84294ead4..ad2277ed64 100644 --- a/vlib/v/fmt/tests/expressions_expected.vv +++ b/vlib/v/fmt/tests/expressions_expected.vv @@ -36,7 +36,7 @@ fn string_inter_lit(mut c checker.Checker, mut node ast.StringInterLiteral) tabl return table.string_type } -fn get_some_val(a_test, b_test, c_test, d_test, e_test, f_test f64) f64 { +fn get_some_val(a_test f64, b_test f64, c_test f64, d_test f64, e_test f64, f_test f64) f64 { return a_test * b_test * c_test * d_test + e_test * f_test * a_test * d_test + a_test * b_test * c_test } @@ -59,7 +59,7 @@ fn main() { } } -fn gen_str_for_multi_return(mut g gen.Gen, info table.MultiReturn, styp, str_fn_name string) { +fn gen_str_for_multi_return(mut g gen.Gen, info table.MultiReturn, styp string, str_fn_name string) { for i, _ in info.types { println('\tstrings__Builder_write(&sb, _STR("\'%.*s\\000\'", 2, a.arg$i));') } diff --git a/vlib/v/fmt/tests/functions_expected.vv b/vlib/v/fmt/tests/functions_expected.vv index eac39ec9ba..1d88e63d3c 100644 --- a/vlib/v/fmt/tests/functions_expected.vv +++ b/vlib/v/fmt/tests/functions_expected.vv @@ -20,11 +20,11 @@ fn fn_with_1_arg(arg int) int { return 0 } -fn fn_with_2a_args(arg1, arg2 int) int { +fn fn_with_2a_args(arg1 int, arg2 int) int { return 0 } -fn fn_with_2_args_to_be_shorten(arg1, arg2 int) int { +fn fn_with_2_args_to_be_shorten(arg1 int, arg2 int) int { return 0 } diff --git a/vlib/v/fmt/tests/functions_input.vv b/vlib/v/fmt/tests/functions_input.vv index f0341a7fa2..cbd98656c5 100644 --- a/vlib/v/fmt/tests/functions_input.vv +++ b/vlib/v/fmt/tests/functions_input.vv @@ -20,7 +20,7 @@ fn fn_with_1_arg(arg int) int { return 0 } -fn fn_with_2a_args(arg1, arg2 int) int { +fn fn_with_2a_args(arg1 int, arg2 int) int { return 0 } diff --git a/vlib/v/fmt/tests/string_interpolation_expected.vv b/vlib/v/fmt/tests/string_interpolation_expected.vv index 9855d2edca..b8d97d5c98 100644 --- a/vlib/v/fmt/tests/string_interpolation_expected.vv +++ b/vlib/v/fmt/tests/string_interpolation_expected.vv @@ -14,7 +14,7 @@ fn (c &Cc) f() int { return c.a[0].xy } -fn (c &Cc) g(k, l int) int { +fn (c &Cc) g(k int, l int) int { return c.a[k].xy + l } diff --git a/vlib/v/fmt/tests/string_interpolation_input.vv b/vlib/v/fmt/tests/string_interpolation_input.vv index 31b109d7ed..891e01173f 100644 --- a/vlib/v/fmt/tests/string_interpolation_input.vv +++ b/vlib/v/fmt/tests/string_interpolation_input.vv @@ -14,7 +14,7 @@ fn (c &Cc) f() int { return c.a[0].xy } -fn (c &Cc) g(k, l int) int { +fn (c &Cc) g(k int, l int) int { return c.a[k].xy+l }