From 86dfd3902fa851455e98b176a0abf5ff9dc6ab28 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 25 Aug 2020 18:14:06 +0300 Subject: [PATCH] tests: use .vv files directly in compiler_errors_test.v --- .../tests/add_op_wrong_left_type_err_a.out | 2 +- .../tests/add_op_wrong_left_type_err_b.out | 2 +- .../tests/add_op_wrong_left_type_err_c.out | 2 +- .../tests/add_op_wrong_right_type_err_a.out | 2 +- .../tests/add_op_wrong_right_type_err_b.out | 2 +- .../tests/add_op_wrong_right_type_err_c.out | 2 +- vlib/v/checker/tests/alias_type_exists.out | 2 +- .../tests/ambiguous_function_call_a.out | 2 +- .../tests/ambiguous_function_call_b.out | 2 +- .../checker/tests/array_declare_element_a.out | 2 +- .../checker/tests/array_declare_element_b.out | 2 +- .../checker/tests/array_declare_element_c.out | 2 +- .../tests/array_filter_anon_fn_err_a.out | 2 +- .../tests/array_filter_anon_fn_err_b.out | 2 +- .../v/checker/tests/array_filter_fn_err_a.out | 2 +- .../v/checker/tests/array_filter_fn_err_b.out | 2 +- .../tests/array_insert_type_mismatch_a.out | 2 +- .../tests/array_insert_type_mismatch_b.out | 2 +- .../tests/array_insert_type_mismatch_c.out | 2 +- .../tests/array_insert_type_mismatch_d.out | 2 +- .../checker/tests/array_map_anon_fn_err_a.out | 2 +- .../checker/tests/array_map_anon_fn_err_b.out | 2 +- vlib/v/checker/tests/array_map_fn_err_a.out | 2 +- vlib/v/checker/tests/array_map_fn_err_b.out | 2 +- .../tests/array_prepend_type_mismatch_a.out | 2 +- .../tests/array_prepend_type_mismatch_b.out | 2 +- .../tests/array_prepend_type_mismatch_c.out | 2 +- .../tests/array_prepend_type_mismatch_d.out | 2 +- .../tests/arrow_op_wrong_left_type_err_a.out | 2 +- .../tests/arrow_op_wrong_left_type_err_b.out | 2 +- .../tests/arrow_op_wrong_right_type_err_a.out | 2 +- .../tests/arrow_op_wrong_right_type_err_b.out | 2 +- .../checker/tests/assign_expr_type_err_a.out | 2 +- .../checker/tests/assign_expr_type_err_b.out | 2 +- .../checker/tests/assign_expr_type_err_c.out | 2 +- .../checker/tests/assign_expr_type_err_d.out | 2 +- .../checker/tests/assign_expr_type_err_e.out | 2 +- .../checker/tests/assign_expr_type_err_f.out | 2 +- .../checker/tests/assign_expr_type_err_g.out | 2 +- .../checker/tests/assign_expr_type_err_h.out | 2 +- .../checker/tests/assign_expr_type_err_i.out | 2 +- .../tests/assign_expr_undefined_err_a.out | 2 +- .../tests/assign_expr_undefined_err_b.out | 2 +- .../tests/assign_expr_undefined_err_c.out | 2 +- .../tests/assign_expr_undefined_err_d.out | 2 +- .../tests/assign_expr_undefined_err_e.out | 2 +- .../tests/assign_expr_undefined_err_f.out | 2 +- .../tests/assign_fn_call_on_left_side_err.out | 2 +- .../tests/assign_multi_immutable_err.out | 2 +- .../tests/bin_lit_without_digit_err.out | 2 +- .../checker/tests/bin_lit_wrong_digit_err.out | 2 +- .../tests/bit_op_wrong_left_type_err.out | 2 +- .../tests/bit_op_wrong_right_type_err.out | 2 +- vlib/v/checker/tests/blank_modify.out | 2 +- vlib/v/checker/tests/cannot_assign_array.out | 2 +- .../v/checker/tests/cannot_cast_to_struct.out | 8 +++---- vlib/v/checker/tests/cast_err.out | 6 ++--- vlib/v/checker/tests/cast_string_err.out | 2 +- .../tests/cast_string_with_byte_err.out | 2 +- .../tests/const_define_in_function_err.out | 2 +- vlib/v/checker/tests/const_field_add_err.out | 2 +- vlib/v/checker/tests/const_field_dec_err.out | 2 +- vlib/v/checker/tests/const_field_inc_err.out | 2 +- .../tests/const_field_name_duplicate_err.out | 2 +- .../tests/const_field_name_snake_case.out | 2 +- vlib/v/checker/tests/const_field_sub_err.out | 2 +- .../checker/tests/dec_lit_wrong_digit_err.out | 2 +- .../tests/div_op_wrong_left_type_err_a.out | 2 +- .../tests/div_op_wrong_left_type_err_b.out | 2 +- .../tests/div_op_wrong_left_type_err_c.out | 2 +- .../tests/div_op_wrong_right_type_err_a.out | 2 +- .../tests/div_op_wrong_right_type_err_b.out | 2 +- .../tests/div_op_wrong_right_type_err_c.out | 2 +- .../tests/division_by_zero_float_err.out | 2 +- .../tests/division_by_zero_int_err.out | 8 +++---- vlib/v/checker/tests/enum_err.out | 4 ++-- .../tests/enum_field_name_duplicate_err.out | 2 +- vlib/v/checker/tests/enum_field_overflow.out | 2 +- .../tests/enum_field_value_duplicate_err.out | 4 ++-- .../tests/enum_field_value_overflow.out | 2 +- .../tests/float_lit_exp_not_integer_err.out | 2 +- .../tests/float_lit_exp_without_digit_err.out | 2 +- .../tests/float_lit_too_many_points_err.out | 2 +- vlib/v/checker/tests/float_modulo_err.out | 4 ++-- vlib/v/checker/tests/fn_type_exists.out | 4 ++-- .../v/checker/tests/for_in_index_optional.out | 2 +- vlib/v/checker/tests/for_in_index_type.out | 2 +- .../tests/for_in_map_one_variable_err.out | 2 +- .../tests/for_in_range_not_match_type.out | 2 +- .../tests/for_in_range_string_type.out | 2 +- .../tests/function_arg_mutable_err.out | 2 +- .../tests/function_arg_redefinition.out | 2 +- .../tests/function_missing_return_type.out | 2 +- .../tests/function_variadic_arg_non_final.out | 2 +- .../checker/tests/function_wrong_arg_type.out | 2 +- .../tests/function_wrong_return_type.out | 2 +- .../tests/globals/incorrect_name_global.out | 2 +- vlib/v/checker/tests/globals_error.out | 2 +- vlib/v/checker/tests/go_expr.out | 2 +- vlib/v/checker/tests/go_mut_arg.out | 2 +- vlib/v/checker/tests/go_mut_receiver.out | 2 +- .../tests/hex_lit_without_digit_err.out | 2 +- .../checker/tests/hex_lit_wrong_digit_err.out | 2 +- vlib/v/checker/tests/if_expr_last_stmt.out | 4 ++-- vlib/v/checker/tests/if_expr_mismatch.out | 2 +- vlib/v/checker/tests/if_expr_no_else.out | 2 +- vlib/v/checker/tests/immutable_arg.out | 2 +- .../tests/immutable_array_field_assign.out | 2 +- .../tests/immutable_array_field_shift.out | 2 +- .../tests/immutable_array_struct_assign.out | 2 +- .../tests/immutable_array_struct_shift.out | 2 +- vlib/v/checker/tests/immutable_array_var.out | 2 +- vlib/v/checker/tests/immutable_field.out | 2 +- .../checker/tests/immutable_field_postfix.out | 4 ++-- .../v/checker/tests/immutable_map_postfix.out | 4 ++-- vlib/v/checker/tests/immutable_rec.out | 2 +- .../tests/immutable_struct_postfix.out | 4 ++-- vlib/v/checker/tests/immutable_var.out | 2 +- .../v/checker/tests/immutable_var_postfix.out | 4 ++-- vlib/v/checker/tests/import_duplicate_err.out | 2 +- vlib/v/checker/tests/import_middle_err.out | 2 +- .../v/checker/tests/import_mod_as_mod_err.out | 2 +- .../tests/import_mod_sub_as_sub_err.out | 2 +- .../tests/import_multiple_modules_err.out | 2 +- .../tests/import_not_same_line_err.out | 2 +- vlib/v/checker/tests/import_symbol_empty.out | 2 +- vlib/v/checker/tests/import_symbol_fn_err.out | 4 ++-- .../v/checker/tests/import_symbol_invalid.out | 2 +- .../checker/tests/import_symbol_type_err.out | 4 ++-- .../checker/tests/import_symbol_unclosed.out | 2 +- vlib/v/checker/tests/import_syntax_err.out | 2 +- .../v/checker/tests/import_unused_warning.out | 2 +- vlib/v/checker/tests/in_mismatch_type.out | 22 +++++++++---------- .../tests/incorrect_for_in_name_variable.out | 2 +- .../tests/incorrect_name_alias_type.out | 2 +- vlib/v/checker/tests/incorrect_name_enum.out | 2 +- .../tests/incorrect_name_enum_field.out | 2 +- .../checker/tests/incorrect_name_fn_type.out | 2 +- .../checker/tests/incorrect_name_function.out | 2 +- .../tests/incorrect_name_interface.out | 2 +- .../tests/incorrect_name_interface_method.out | 2 +- .../v/checker/tests/incorrect_name_module.out | 2 +- .../v/checker/tests/incorrect_name_struct.out | 2 +- .../tests/incorrect_name_struct_field.out | 2 +- .../checker/tests/incorrect_name_sum_type.out | 2 +- .../checker/tests/incorrect_name_variable.out | 2 +- vlib/v/checker/tests/index_expr.out | 12 +++++----- .../checker/tests/int_modulo_by_zero_err.out | 2 +- .../tests/invert_other_types_bits_error.out | 8 +++---- vlib/v/checker/tests/is_type_not_exist.out | 4 ++-- vlib/v/checker/tests/left_shift_err.out | 2 +- vlib/v/checker/tests/lock_already_locked.out | 2 +- vlib/v/checker/tests/lock_already_rlocked.out | 2 +- vlib/v/checker/tests/lock_const.out | 2 +- vlib/v/checker/tests/lock_needed.out | 2 +- vlib/v/checker/tests/lock_nonshared.out | 2 +- vlib/v/checker/tests/main_args_err.out | 2 +- vlib/v/checker/tests/main_called_err.out | 2 +- vlib/v/checker/tests/main_return_err.out | 2 +- .../tests/map_init_key_duplicate_err.out | 2 +- vlib/v/checker/tests/map_init_wrong_type.out | 2 +- .../checker/tests/match_duplicate_branch.out | 12 +++++----- vlib/v/checker/tests/match_else_last_expr.out | 2 +- .../match_expr_and_expected_type_error.out | 4 ++-- vlib/v/checker/tests/match_expr_else.out | 6 ++--- vlib/v/checker/tests/match_undefined_cond.out | 2 +- .../v/checker/tests/method_wrong_arg_type.out | 2 +- .../tests/minus_op_wrong_left_type_err_a.out | 2 +- .../tests/minus_op_wrong_left_type_err_b.out | 2 +- .../tests/minus_op_wrong_left_type_err_c.out | 2 +- .../tests/minus_op_wrong_right_type_err_a.out | 2 +- .../tests/minus_op_wrong_right_type_err_b.out | 2 +- .../tests/minus_op_wrong_right_type_err_c.out | 2 +- .../tests/mod_op_wrong_left_type_err_a.out | 2 +- .../tests/mod_op_wrong_left_type_err_b.out | 2 +- .../tests/mod_op_wrong_left_type_err_c.out | 2 +- .../tests/mod_op_wrong_left_type_err_d.out | 2 +- .../tests/mod_op_wrong_right_type_err_a.out | 2 +- .../tests/mod_op_wrong_right_type_err_b.out | 2 +- .../tests/mod_op_wrong_right_type_err_c.out | 2 +- .../tests/mod_op_wrong_right_type_err_d.out | 2 +- .../tests/module_multiple_names_err.out | 2 +- .../tests/module_not_at_same_line_err.out | 2 +- vlib/v/checker/tests/module_syntax_err.out | 2 +- .../tests/mul_op_wrong_left_type_err_a.out | 2 +- .../tests/mul_op_wrong_left_type_err_b.out | 2 +- .../tests/mul_op_wrong_left_type_err_c.out | 2 +- .../tests/mul_op_wrong_left_type_err_d.out | 2 +- .../tests/mul_op_wrong_right_type_err_a.out | 2 +- .../tests/mul_op_wrong_right_type_err_b.out | 2 +- .../tests/mul_op_wrong_right_type_err_c.out | 2 +- .../tests/mul_op_wrong_right_type_err_d.out | 2 +- .../multi_const_field_name_duplicate_err.out | 2 +- vlib/v/checker/tests/multi_names_err.out | 2 +- vlib/v/checker/tests/mut_args_warning.out | 2 +- vlib/v/checker/tests/mut_int.out | 2 +- vlib/v/checker/tests/mut_receiver_warning.out | 2 +- vlib/v/checker/tests/nested_aliases.out | 2 +- .../tests/no_interface_instantiation_a.out | 2 +- .../tests/no_interface_instantiation_b.out | 2 +- .../tests/no_interface_instantiation_c.out | 2 +- .../v/checker/tests/no_interface_receiver.out | 2 +- .../no_interface_receiver_duplicate_a.out | 2 +- .../no_interface_receiver_duplicate_b.out | 2 +- vlib/v/checker/tests/no_interface_str.out | 2 +- vlib/v/checker/tests/no_main_mod.out | 2 +- vlib/v/checker/tests/no_main_println_err.out | 2 +- vlib/v/checker/tests/no_pub_in_main.out | 14 ++++++------ .../tests/non_matching_functional_args.out | 4 ++-- .../tests/oct_lit_without_digit_err.out | 2 +- .../checker/tests/oct_lit_wrong_digit_err.out | 2 +- .../checker/tests/optional_type_call_err.out | 2 +- .../tests/plus_or_minus_assign_one_err.out | 4 ++-- vlib/v/checker/tests/prefix_err.out | 8 +++---- .../checker/tests/print_optional_type_err.out | 2 +- .../reference_field_must_be_initialized.out | 2 +- .../return_duplicate_with_none_err_a.out | 2 +- .../return_duplicate_with_none_err_b.out | 2 +- .../checker/tests/return_missing_comp_if.out | 2 +- .../tests/return_missing_comp_if_nested.out | 2 +- .../checker/tests/return_missing_if_match.out | 2 +- .../checker/tests/return_missing_match_if.out | 2 +- .../v/checker/tests/return_missing_nested.out | 2 +- .../v/checker/tests/return_missing_simple.out | 2 +- vlib/v/checker/tests/return_optional_err.out | 2 +- .../tests/return_ref_as_no_ref_bug.out | 2 +- vlib/v/checker/tests/return_type.out | 2 +- .../tests/rshift_op_wrong_left_type_err.out | 2 +- .../tests/rshift_op_wrong_right_type_err.out | 2 +- ...xpr_unresolved_variables_err_chain.run.out | 4 ++-- vlib/v/checker/tests/selector_expr_assign.out | 2 +- .../tests/shift_op_wrong_left_type_err.out | 2 +- .../tests/shift_op_wrong_right_type_err.out | 2 +- .../v/checker/tests/short_struct_too_many.out | 2 +- ...rt_method_called_on_immutable_receiver.out | 4 ++-- .../checker/tests/str_method_0_arguments.out | 2 +- .../tests/str_method_return_string.out | 2 +- .../tests/string_index_assign_error.out | 2 +- .../string_interpolation_invalid_fmt.out | 2 +- .../tests/string_interpolation_wrong_fmt.out | 18 +++++++-------- .../struct_cast_to_struct_generic_err.out | 2 +- .../tests/struct_cast_to_struct_mut_err_a.out | 2 +- .../tests/struct_cast_to_struct_mut_err_b.out | 2 +- .../tests/struct_cast_to_struct_pub_err_a.out | 2 +- .../tests/struct_cast_to_struct_pub_err_b.out | 2 +- .../tests/struct_field_name_duplicate_err.out | 2 +- vlib/v/checker/tests/struct_pub_field.out | 2 +- vlib/v/checker/tests/struct_unknown_field.out | 2 +- vlib/v/checker/tests/sum_type_exists.out | 2 +- .../tests/trailing_comma_struct_attr.out | 2 +- vlib/v/checker/tests/unexpected_or.out | 2 +- .../checker/tests/unexpected_or_propagate.out | 2 +- .../tests/unimplemented_interface_a.out | 2 +- .../tests/unimplemented_interface_b.out | 2 +- .../tests/unimplemented_interface_c.out | 2 +- .../tests/unimplemented_interface_d.out | 2 +- .../tests/unimplemented_interface_e.out | 2 +- .../tests/unimplemented_interface_f.out | 2 +- .../tests/unimplemented_interface_g.out | 2 +- .../tests/unknown_array_element_type_a.out | 2 +- .../tests/unknown_array_element_type_b.out | 2 +- vlib/v/checker/tests/unknown_as_type.out | 2 +- vlib/v/checker/tests/unknown_field.out | 2 +- vlib/v/checker/tests/unknown_method.out | 2 +- .../tests/unknown_method_suggest_name.out | 4 ++-- vlib/v/checker/tests/unknown_var_assign.out | 2 +- .../checker/tests/unnecessary_parenthesis.out | 6 ++--- vlib/v/checker/tests/unreachable_code.out | 2 +- .../unsafe_c_calls_should_be_checked.out | 4 ++-- ...e_pointer_arithmetic_should_be_checked.out | 10 ++++----- vlib/v/checker/tests/unsafe_required.out | 14 ++++++------ .../tests/use_deprecated_function_warning.out | 2 +- vlib/v/checker/tests/var_eval_not_used.out | 2 +- .../checker/tests/var_eval_not_used_scope.out | 2 +- .../tests/var_used_before_declaration.out | 2 +- vlib/v/checker/tests/void_fn_as_value.out | 2 +- .../tests/void_function_assign_to_string.out | 2 +- vlib/v/checker/tests/void_optional_err.out | 2 +- .../tests/warnings_for_string_c2v_calls.out | 4 ++-- .../tests/wrong_propagate_ret_type.out | 2 +- vlib/v/compiler_errors_test.v | 12 ++++------ vlib/v/parser/tests/dec_use_as_value.out | 2 +- vlib/v/parser/tests/duplicate_type_a.out | 2 +- vlib/v/parser/tests/duplicate_type_b.out | 2 +- .../tests/expr_evaluated_but_not_used_a.out | 2 +- .../tests/expr_evaluated_but_not_used_b.out | 2 +- .../tests/expr_evaluated_but_not_used_c.out | 2 +- .../tests/expr_evaluated_but_not_used_d.out | 2 +- .../fn_attributes_duplicate_multiple.out | 2 +- .../tests/fn_attributes_duplicate_single.out | 2 +- .../parser/tests/fn_attributes_empty_err.out | 2 +- .../tests/fn_type_only_args_in_interfaces.out | 2 +- .../tests/fn_type_only_args_no_body.out | 2 +- .../tests/fn_type_only_args_unknown_name.out | 2 +- vlib/v/parser/tests/inc_use_as_value.out | 2 +- .../tests/interface_duplicate_method.out | 2 +- .../v/parser/tests/match_range_dotdot_err.out | 2 +- vlib/v/parser/tests/postfix_err.out | 6 ++--- vlib/v/pref/default.v | 4 ++-- 299 files changed, 387 insertions(+), 391 deletions(-) diff --git a/vlib/v/checker/tests/add_op_wrong_left_type_err_a.out b/vlib/v/checker/tests/add_op_wrong_left_type_err_a.out index a42c15343d..f6ae0a8629 100644 --- a/vlib/v/checker/tests/add_op_wrong_left_type_err_a.out +++ b/vlib/v/checker/tests/add_op_wrong_left_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/add_op_wrong_left_type_err_a.v:3:13: error: mismatched types `Aaa` and `any_int` +vlib/v/checker/tests/add_op_wrong_left_type_err_a.vv:3:13: error: mismatched types `Aaa` and `any_int` 1 | struct Aaa{} 2 | fn main() { 3 | println(Aaa{} + 10) diff --git a/vlib/v/checker/tests/add_op_wrong_left_type_err_b.out b/vlib/v/checker/tests/add_op_wrong_left_type_err_b.out index 4aad4aa2b1..b152af8740 100644 --- a/vlib/v/checker/tests/add_op_wrong_left_type_err_b.out +++ b/vlib/v/checker/tests/add_op_wrong_left_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/add_op_wrong_left_type_err_b.v:2:13: error: mismatched types `[]int` and `any_int` +vlib/v/checker/tests/add_op_wrong_left_type_err_b.vv:2:13: error: mismatched types `[]int` and `any_int` 1 | fn main() { 2 | println([1,2,3] + 10) | ~~~~~~~ diff --git a/vlib/v/checker/tests/add_op_wrong_left_type_err_c.out b/vlib/v/checker/tests/add_op_wrong_left_type_err_c.out index af6d21b9eb..010bf59fc0 100644 --- a/vlib/v/checker/tests/add_op_wrong_left_type_err_c.out +++ b/vlib/v/checker/tests/add_op_wrong_left_type_err_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/add_op_wrong_left_type_err_c.v:3:13: error: mismatched types `map_string_int` and `any_int` +vlib/v/checker/tests/add_op_wrong_left_type_err_c.vv:3:13: error: mismatched types `map_string_int` and `any_int` 1 | fn main() { 2 | a := map[string]int 3 | println(a + 10) diff --git a/vlib/v/checker/tests/add_op_wrong_right_type_err_a.out b/vlib/v/checker/tests/add_op_wrong_right_type_err_a.out index dd7eb74cfa..a4b73780dd 100644 --- a/vlib/v/checker/tests/add_op_wrong_right_type_err_a.out +++ b/vlib/v/checker/tests/add_op_wrong_right_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/add_op_wrong_right_type_err_a.v:3:18: error: mismatched types `any_int` and `Aaa` +vlib/v/checker/tests/add_op_wrong_right_type_err_a.vv:3:18: error: mismatched types `any_int` and `Aaa` 1 | struct Aaa{} 2 | fn main() { 3 | println(10 + Aaa{}) diff --git a/vlib/v/checker/tests/add_op_wrong_right_type_err_b.out b/vlib/v/checker/tests/add_op_wrong_right_type_err_b.out index 86a9effdcf..fc14ff4da5 100644 --- a/vlib/v/checker/tests/add_op_wrong_right_type_err_b.out +++ b/vlib/v/checker/tests/add_op_wrong_right_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/add_op_wrong_right_type_err_b.v:2:18: error: mismatched types `any_int` and `[]int` +vlib/v/checker/tests/add_op_wrong_right_type_err_b.vv:2:18: error: mismatched types `any_int` and `[]int` 1 | fn main() { 2 | println(10 + [1,2,3]) | ~~~~~~~ diff --git a/vlib/v/checker/tests/add_op_wrong_right_type_err_c.out b/vlib/v/checker/tests/add_op_wrong_right_type_err_c.out index 2215311846..6e2d229311 100644 --- a/vlib/v/checker/tests/add_op_wrong_right_type_err_c.out +++ b/vlib/v/checker/tests/add_op_wrong_right_type_err_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/add_op_wrong_right_type_err_c.v:3:18: error: mismatched types `any_int` and `map_string_int` +vlib/v/checker/tests/add_op_wrong_right_type_err_c.vv:3:18: error: mismatched types `any_int` and `map_string_int` 1 | fn main() { 2 | a := map[string]int 3 | println(10 + a) diff --git a/vlib/v/checker/tests/alias_type_exists.out b/vlib/v/checker/tests/alias_type_exists.out index a45af1c5d5..08a36653d6 100644 --- a/vlib/v/checker/tests/alias_type_exists.out +++ b/vlib/v/checker/tests/alias_type_exists.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/alias_type_exists.v:1:1: error: type `Bird` doesn't exist +vlib/v/checker/tests/alias_type_exists.vv:1:1: error: type `Bird` doesn't exist 1 | type Pigeon Bird | ~~~~~~~~~~~ 2 | diff --git a/vlib/v/checker/tests/ambiguous_function_call_a.out b/vlib/v/checker/tests/ambiguous_function_call_a.out index f4ed949d72..5207658e8e 100644 --- a/vlib/v/checker/tests/ambiguous_function_call_a.out +++ b/vlib/v/checker/tests/ambiguous_function_call_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/ambiguous_function_call_a.v:2:2: error: ambiguous call to: `foo`, may refer to fn `foo` or variable `foo` +vlib/v/checker/tests/ambiguous_function_call_a.vv:2:2: error: ambiguous call to: `foo`, may refer to fn `foo` or variable `foo` 1 | fn foo(foo int) { 2 | foo(foo + 1) | ~~~~~~~~~~~~ diff --git a/vlib/v/checker/tests/ambiguous_function_call_b.out b/vlib/v/checker/tests/ambiguous_function_call_b.out index 48c9473d6d..4dd519cf3d 100644 --- a/vlib/v/checker/tests/ambiguous_function_call_b.out +++ b/vlib/v/checker/tests/ambiguous_function_call_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/ambiguous_function_call_b.v:3:2: error: ambiguous call to: `foo`, may refer to fn `foo` or variable `foo` +vlib/v/checker/tests/ambiguous_function_call_b.vv:3:2: error: ambiguous call to: `foo`, may refer to fn `foo` or variable `foo` 1 | fn foo() { 2 | foo := 1 3 | foo(foo) diff --git a/vlib/v/checker/tests/array_declare_element_a.out b/vlib/v/checker/tests/array_declare_element_a.out index 8f90615b93..15335ccb36 100644 --- a/vlib/v/checker/tests/array_declare_element_a.out +++ b/vlib/v/checker/tests/array_declare_element_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_declare_element_a.v:2:5: error: non-name `arr[0]` on left side of `:=` +vlib/v/checker/tests/array_declare_element_a.vv:2:5: error: non-name `arr[0]` on left side of `:=` 1 | fn main() { 2 | arr[0] := 2 | ~~~ diff --git a/vlib/v/checker/tests/array_declare_element_b.out b/vlib/v/checker/tests/array_declare_element_b.out index 1cbe0020b2..a89816535e 100644 --- a/vlib/v/checker/tests/array_declare_element_b.out +++ b/vlib/v/checker/tests/array_declare_element_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_declare_element_b.v:3:5: error: non-name `arr[1]` on left side of `:=` +vlib/v/checker/tests/array_declare_element_b.vv:3:5: error: non-name `arr[1]` on left side of `:=` 1 | fn main() { 2 | arr := [1, 2] 3 | arr[1] := 1 diff --git a/vlib/v/checker/tests/array_declare_element_c.out b/vlib/v/checker/tests/array_declare_element_c.out index ac3addf688..d6e2aaf433 100644 --- a/vlib/v/checker/tests/array_declare_element_c.out +++ b/vlib/v/checker/tests/array_declare_element_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_declare_element_c.v:3:8: error: non-name `arr[1][0]` on left side of `:=` +vlib/v/checker/tests/array_declare_element_c.vv:3:8: error: non-name `arr[1][0]` on left side of `:=` 1 | fn main() { 2 | arr := [[1, 2], [0, 3]] 3 | arr[1][0] := 1 diff --git a/vlib/v/checker/tests/array_filter_anon_fn_err_a.out b/vlib/v/checker/tests/array_filter_anon_fn_err_a.out index dd91d173d1..d2d90953f4 100644 --- a/vlib/v/checker/tests/array_filter_anon_fn_err_a.out +++ b/vlib/v/checker/tests/array_filter_anon_fn_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_filter_anon_fn_err_a.v:2:23: error: function needs exactly 1 argument +vlib/v/checker/tests/array_filter_anon_fn_err_a.vv:2:23: error: function needs exactly 1 argument 1 | fn main() { 2 | a := [1,2,3,4].filter(fn(a int, b int) bool { return a > 0 }) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/vlib/v/checker/tests/array_filter_anon_fn_err_b.out b/vlib/v/checker/tests/array_filter_anon_fn_err_b.out index 7fd970d8f1..fd574ab084 100644 --- a/vlib/v/checker/tests/array_filter_anon_fn_err_b.out +++ b/vlib/v/checker/tests/array_filter_anon_fn_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_filter_anon_fn_err_b.v:2:23: error: type mismatch, should use `fn(a int) bool {...}` +vlib/v/checker/tests/array_filter_anon_fn_err_b.vv:2:23: error: type mismatch, should use `fn(a int) bool {...}` 1 | fn main() { 2 | a := [1,2,3,4].filter(fn(a string) bool { return a.len > 0 }) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/vlib/v/checker/tests/array_filter_fn_err_a.out b/vlib/v/checker/tests/array_filter_fn_err_a.out index ce518632db..1e82166d3a 100644 --- a/vlib/v/checker/tests/array_filter_fn_err_a.out +++ b/vlib/v/checker/tests/array_filter_fn_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_filter_fn_err_a.v:5:23: error: function needs exactly 1 argument +vlib/v/checker/tests/array_filter_fn_err_a.vv:5:23: error: function needs exactly 1 argument 3 | } 4 | fn main() { 5 | a := [1,2,3,4].filter(fil) diff --git a/vlib/v/checker/tests/array_filter_fn_err_b.out b/vlib/v/checker/tests/array_filter_fn_err_b.out index 642b574265..ecc2480bc1 100644 --- a/vlib/v/checker/tests/array_filter_fn_err_b.out +++ b/vlib/v/checker/tests/array_filter_fn_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_filter_fn_err_b.v:5:23: error: type mismatch, should use `fn(a int) bool {...}` +vlib/v/checker/tests/array_filter_fn_err_b.vv:5:23: error: type mismatch, should use `fn(a int) bool {...}` 3 | } 4 | fn main() { 5 | a := [1,2,3,4].filter(fil) diff --git a/vlib/v/checker/tests/array_insert_type_mismatch_a.out b/vlib/v/checker/tests/array_insert_type_mismatch_a.out index f18aea45a2..33652e1d1f 100644 --- a/vlib/v/checker/tests/array_insert_type_mismatch_a.out +++ b/vlib/v/checker/tests/array_insert_type_mismatch_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_insert_type_mismatch_a.v:3:14: error: type mismatch, should use `int` +vlib/v/checker/tests/array_insert_type_mismatch_a.vv:3:14: error: type mismatch, should use `int` 1 | fn main() { 2 | mut a := [1, 2] 3 | a.insert(1, 2.3) diff --git a/vlib/v/checker/tests/array_insert_type_mismatch_b.out b/vlib/v/checker/tests/array_insert_type_mismatch_b.out index e11fac6890..5240b5b901 100644 --- a/vlib/v/checker/tests/array_insert_type_mismatch_b.out +++ b/vlib/v/checker/tests/array_insert_type_mismatch_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_insert_type_mismatch_b.v:3:14: error: type mismatch, should use `int` +vlib/v/checker/tests/array_insert_type_mismatch_b.vv:3:14: error: type mismatch, should use `int` 1 | fn main() { 2 | mut a := [1, 2] 3 | a.insert(1, 'abc') diff --git a/vlib/v/checker/tests/array_insert_type_mismatch_c.out b/vlib/v/checker/tests/array_insert_type_mismatch_c.out index 03d8351fef..e01f8a40c6 100644 --- a/vlib/v/checker/tests/array_insert_type_mismatch_c.out +++ b/vlib/v/checker/tests/array_insert_type_mismatch_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_insert_type_mismatch_c.v:3:14: error: type mismatch, should use `f64[]` +vlib/v/checker/tests/array_insert_type_mismatch_c.vv:3:14: error: type mismatch, should use `f64[]` 1 | fn main() { 2 | mut a := [1.1, 2.2] 3 | a.insert(1, [2, 3]) diff --git a/vlib/v/checker/tests/array_insert_type_mismatch_d.out b/vlib/v/checker/tests/array_insert_type_mismatch_d.out index 8fc07ec565..7946adaa28 100644 --- a/vlib/v/checker/tests/array_insert_type_mismatch_d.out +++ b/vlib/v/checker/tests/array_insert_type_mismatch_d.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_insert_type_mismatch_d.v:3:14: error: type mismatch, should use `int[]` +vlib/v/checker/tests/array_insert_type_mismatch_d.vv:3:14: error: type mismatch, should use `int[]` 1 | fn main() { 2 | mut a := [1, 2] 3 | a.insert(1, ['aa', 'bb', 'cc']) diff --git a/vlib/v/checker/tests/array_map_anon_fn_err_a.out b/vlib/v/checker/tests/array_map_anon_fn_err_a.out index 764cf7866f..0243eccb46 100644 --- a/vlib/v/checker/tests/array_map_anon_fn_err_a.out +++ b/vlib/v/checker/tests/array_map_anon_fn_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_map_anon_fn_err_a.v:2:20: error: function needs exactly 1 argument +vlib/v/checker/tests/array_map_anon_fn_err_a.vv:2:20: error: function needs exactly 1 argument 1 | fn main() { 2 | a := [1,2,3,4].map(fn(a int, b int) int {return a + b}) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/vlib/v/checker/tests/array_map_anon_fn_err_b.out b/vlib/v/checker/tests/array_map_anon_fn_err_b.out index 7089421761..41fd5292fa 100644 --- a/vlib/v/checker/tests/array_map_anon_fn_err_b.out +++ b/vlib/v/checker/tests/array_map_anon_fn_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_map_anon_fn_err_b.v:2:20: error: type mismatch, should use `fn(a int) int {...}` +vlib/v/checker/tests/array_map_anon_fn_err_b.vv:2:20: error: type mismatch, should use `fn(a int) int {...}` 1 | fn main() { 2 | a := [1,2,3,4].map(fn(a string) string { return a }) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/vlib/v/checker/tests/array_map_fn_err_a.out b/vlib/v/checker/tests/array_map_fn_err_a.out index e2b7233ea6..808aff808c 100644 --- a/vlib/v/checker/tests/array_map_fn_err_a.out +++ b/vlib/v/checker/tests/array_map_fn_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_map_fn_err_a.v:5:20: error: function needs exactly 1 argument +vlib/v/checker/tests/array_map_fn_err_a.vv:5:20: error: function needs exactly 1 argument 3 | } 4 | fn main() { 5 | a := [1,2,3,4].map(add) diff --git a/vlib/v/checker/tests/array_map_fn_err_b.out b/vlib/v/checker/tests/array_map_fn_err_b.out index 3bf8dcfe63..00a8bdbb77 100644 --- a/vlib/v/checker/tests/array_map_fn_err_b.out +++ b/vlib/v/checker/tests/array_map_fn_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_map_fn_err_b.v:5:20: error: type mismatch, should use `fn(a int) int {...}` +vlib/v/checker/tests/array_map_fn_err_b.vv:5:20: error: type mismatch, should use `fn(a int) int {...}` 3 | } 4 | fn main() { 5 | a := [1,2,3,4].map(add) diff --git a/vlib/v/checker/tests/array_prepend_type_mismatch_a.out b/vlib/v/checker/tests/array_prepend_type_mismatch_a.out index b088bfa2bf..19ee60e5fa 100644 --- a/vlib/v/checker/tests/array_prepend_type_mismatch_a.out +++ b/vlib/v/checker/tests/array_prepend_type_mismatch_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_prepend_type_mismatch_a.v:3:12: error: type mismatch, should use `int` +vlib/v/checker/tests/array_prepend_type_mismatch_a.vv:3:12: error: type mismatch, should use `int` 1 | fn main() { 2 | mut a := [1, 2] 3 | a.prepend(2.3) diff --git a/vlib/v/checker/tests/array_prepend_type_mismatch_b.out b/vlib/v/checker/tests/array_prepend_type_mismatch_b.out index 24d12ce3ff..bb33d621f9 100644 --- a/vlib/v/checker/tests/array_prepend_type_mismatch_b.out +++ b/vlib/v/checker/tests/array_prepend_type_mismatch_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_prepend_type_mismatch_b.v:3:12: error: type mismatch, should use `int` +vlib/v/checker/tests/array_prepend_type_mismatch_b.vv:3:12: error: type mismatch, should use `int` 1 | fn main() { 2 | mut a := [1, 2] 3 | a.prepend('abc') diff --git a/vlib/v/checker/tests/array_prepend_type_mismatch_c.out b/vlib/v/checker/tests/array_prepend_type_mismatch_c.out index 1a968ff488..f9a7eda66b 100644 --- a/vlib/v/checker/tests/array_prepend_type_mismatch_c.out +++ b/vlib/v/checker/tests/array_prepend_type_mismatch_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_prepend_type_mismatch_c.v:3:12: error: type mismatch, should use `f64[]` +vlib/v/checker/tests/array_prepend_type_mismatch_c.vv:3:12: error: type mismatch, should use `f64[]` 1 | fn main() { 2 | mut a := [1.1, 2.2] 3 | a.prepend([2, 3]) diff --git a/vlib/v/checker/tests/array_prepend_type_mismatch_d.out b/vlib/v/checker/tests/array_prepend_type_mismatch_d.out index 1408d4d5b8..fad8cb14f6 100644 --- a/vlib/v/checker/tests/array_prepend_type_mismatch_d.out +++ b/vlib/v/checker/tests/array_prepend_type_mismatch_d.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/array_prepend_type_mismatch_d.v:3:12: error: type mismatch, should use `int[]` +vlib/v/checker/tests/array_prepend_type_mismatch_d.vv:3:12: error: type mismatch, should use `int[]` 1 | fn main() { 2 | mut a := [1, 2] 3 | a.prepend(['aa', 'bb', 'cc']) diff --git a/vlib/v/checker/tests/arrow_op_wrong_left_type_err_a.out b/vlib/v/checker/tests/arrow_op_wrong_left_type_err_a.out index 3853891eac..9f838fd27b 100644 --- a/vlib/v/checker/tests/arrow_op_wrong_left_type_err_a.out +++ b/vlib/v/checker/tests/arrow_op_wrong_left_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/arrow_op_wrong_left_type_err_a.v:4:2: error: cannot push on non-channel `i64` +vlib/v/checker/tests/arrow_op_wrong_left_type_err_a.vv:4:2: error: cannot push on non-channel `i64` 2 | ch := i64(3) 3 | obj := 5 4 | ch <- obj diff --git a/vlib/v/checker/tests/arrow_op_wrong_left_type_err_b.out b/vlib/v/checker/tests/arrow_op_wrong_left_type_err_b.out index b047fc8b06..a1369cac7e 100644 --- a/vlib/v/checker/tests/arrow_op_wrong_left_type_err_b.out +++ b/vlib/v/checker/tests/arrow_op_wrong_left_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/arrow_op_wrong_left_type_err_b.v:4:8: error: cannot assign `string` to `obj` of type `int` +vlib/v/checker/tests/arrow_op_wrong_left_type_err_b.vv:4:8: error: cannot assign `string` to `obj` of type `int` 2 | ch := chan string{} 3 | mut obj := 9 4 | obj = <-ch diff --git a/vlib/v/checker/tests/arrow_op_wrong_right_type_err_a.out b/vlib/v/checker/tests/arrow_op_wrong_right_type_err_a.out index 5b9ad8b1ad..d1604cb181 100644 --- a/vlib/v/checker/tests/arrow_op_wrong_right_type_err_a.out +++ b/vlib/v/checker/tests/arrow_op_wrong_right_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/arrow_op_wrong_right_type_err_a.v:4:8: error: cannot push `string` on `chan_u64` +vlib/v/checker/tests/arrow_op_wrong_right_type_err_a.vv:4:8: error: cannot push `string` on `chan_u64` 2 | ch := chan u64{cap: 10} 3 | obj := 'test' 4 | ch <- obj diff --git a/vlib/v/checker/tests/arrow_op_wrong_right_type_err_b.out b/vlib/v/checker/tests/arrow_op_wrong_right_type_err_b.out index df2c9f771a..ae9be3877a 100644 --- a/vlib/v/checker/tests/arrow_op_wrong_right_type_err_b.out +++ b/vlib/v/checker/tests/arrow_op_wrong_right_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/arrow_op_wrong_right_type_err_b.v:3:9: error: <- operator can only be used with `chan` types +vlib/v/checker/tests/arrow_op_wrong_right_type_err_b.vv:3:9: error: <- operator can only be used with `chan` types 1 | fn main() { 2 | ch := i64(3) 3 | obj := <-ch diff --git a/vlib/v/checker/tests/assign_expr_type_err_a.out b/vlib/v/checker/tests/assign_expr_type_err_a.out index 5277265630..38397cbcf3 100644 --- a/vlib/v/checker/tests/assign_expr_type_err_a.out +++ b/vlib/v/checker/tests/assign_expr_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_type_err_a.v:3:2: error: operator <<= not defined on left operand type `f64` +vlib/v/checker/tests/assign_expr_type_err_a.vv:3:2: error: operator <<= not defined on left operand type `f64` 1 | fn main() { 2 | mut foo := 0.5 3 | foo <<= 1 diff --git a/vlib/v/checker/tests/assign_expr_type_err_b.out b/vlib/v/checker/tests/assign_expr_type_err_b.out index bcb0ba94f6..a9ff8ddf79 100644 --- a/vlib/v/checker/tests/assign_expr_type_err_b.out +++ b/vlib/v/checker/tests/assign_expr_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_type_err_b.v:3:9: error: operator %= not defined on right operand type `string` +vlib/v/checker/tests/assign_expr_type_err_b.vv:3:9: error: operator %= not defined on right operand type `string` 1 | fn main() { 2 | mut foo := 10 3 | foo %= 'hello' diff --git a/vlib/v/checker/tests/assign_expr_type_err_c.out b/vlib/v/checker/tests/assign_expr_type_err_c.out index fff09a1e51..f688fab8e8 100644 --- a/vlib/v/checker/tests/assign_expr_type_err_c.out +++ b/vlib/v/checker/tests/assign_expr_type_err_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_type_err_c.v:3:2: error: operator *= not defined on left operand type `string` +vlib/v/checker/tests/assign_expr_type_err_c.vv:3:2: error: operator *= not defined on left operand type `string` 1 | fn main() { 2 | mut foo := 'hello' 3 | foo *= 10 diff --git a/vlib/v/checker/tests/assign_expr_type_err_d.out b/vlib/v/checker/tests/assign_expr_type_err_d.out index d7b0b3a367..b408b63930 100644 --- a/vlib/v/checker/tests/assign_expr_type_err_d.out +++ b/vlib/v/checker/tests/assign_expr_type_err_d.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_type_err_d.v:3:9: error: operator /= not defined on right operand type `bool` +vlib/v/checker/tests/assign_expr_type_err_d.vv:3:9: error: operator /= not defined on right operand type `bool` 1 | fn main() { 2 | mut foo := 1.5 3 | foo /= true diff --git a/vlib/v/checker/tests/assign_expr_type_err_e.out b/vlib/v/checker/tests/assign_expr_type_err_e.out index 1d35abae40..943b11dafc 100644 --- a/vlib/v/checker/tests/assign_expr_type_err_e.out +++ b/vlib/v/checker/tests/assign_expr_type_err_e.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_type_err_e.v:3:2: error: operator -= not defined on left operand type `string` +vlib/v/checker/tests/assign_expr_type_err_e.vv:3:2: error: operator -= not defined on left operand type `string` 1 | fn main() { 2 | mut foo := 'hello' 3 | foo -= `a` diff --git a/vlib/v/checker/tests/assign_expr_type_err_f.out b/vlib/v/checker/tests/assign_expr_type_err_f.out index 778b57198f..ac9b460bbd 100644 --- a/vlib/v/checker/tests/assign_expr_type_err_f.out +++ b/vlib/v/checker/tests/assign_expr_type_err_f.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_type_err_f.v:3:9: error: operator -= not defined on right operand type `bool` +vlib/v/checker/tests/assign_expr_type_err_f.vv:3:9: error: operator -= not defined on right operand type `bool` 1 | fn main() { 2 | mut foo := 10 3 | foo -= false diff --git a/vlib/v/checker/tests/assign_expr_type_err_g.out b/vlib/v/checker/tests/assign_expr_type_err_g.out index 2ec5576ee9..95d8212ca2 100644 --- a/vlib/v/checker/tests/assign_expr_type_err_g.out +++ b/vlib/v/checker/tests/assign_expr_type_err_g.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_type_err_g.v:3:2: error: operator += not defined on left operand type `bool` +vlib/v/checker/tests/assign_expr_type_err_g.vv:3:2: error: operator += not defined on left operand type `bool` 1 | fn main() { 2 | mut foo := true 3 | foo += false diff --git a/vlib/v/checker/tests/assign_expr_type_err_h.out b/vlib/v/checker/tests/assign_expr_type_err_h.out index 9a72db1fc2..0ee452f1ac 100644 --- a/vlib/v/checker/tests/assign_expr_type_err_h.out +++ b/vlib/v/checker/tests/assign_expr_type_err_h.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_type_err_h.v:3:9: error: operator += not defined on right operand type `bool` +vlib/v/checker/tests/assign_expr_type_err_h.vv:3:9: error: operator += not defined on right operand type `bool` 1 | fn main() { 2 | mut foo := 'hello' 3 | foo += false diff --git a/vlib/v/checker/tests/assign_expr_type_err_i.out b/vlib/v/checker/tests/assign_expr_type_err_i.out index cc6bb4fe67..5e6e52e686 100644 --- a/vlib/v/checker/tests/assign_expr_type_err_i.out +++ b/vlib/v/checker/tests/assign_expr_type_err_i.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_type_err_i.v:3:9: error: cannot assign `string` to `foo` of type `f64` +vlib/v/checker/tests/assign_expr_type_err_i.vv:3:9: error: cannot assign `string` to `foo` of type `f64` 1 | fn main() { 2 | mut foo := 1.5 3 | foo += 'hello' diff --git a/vlib/v/checker/tests/assign_expr_undefined_err_a.out b/vlib/v/checker/tests/assign_expr_undefined_err_a.out index 2d51e38072..d7aaac0f2d 100644 --- a/vlib/v/checker/tests/assign_expr_undefined_err_a.out +++ b/vlib/v/checker/tests/assign_expr_undefined_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_undefined_err_a.v:2:7: error: undefined variable: `a` +vlib/v/checker/tests/assign_expr_undefined_err_a.vv:2:7: error: undefined variable: `a` 1 | fn main() { 2 | a := a | ^ diff --git a/vlib/v/checker/tests/assign_expr_undefined_err_b.out b/vlib/v/checker/tests/assign_expr_undefined_err_b.out index cb320a5733..f43a641af8 100644 --- a/vlib/v/checker/tests/assign_expr_undefined_err_b.out +++ b/vlib/v/checker/tests/assign_expr_undefined_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_undefined_err_b.v:2:10: error: undefined variable: `a` +vlib/v/checker/tests/assign_expr_undefined_err_b.vv:2:10: error: undefined variable: `a` 1 | fn main() { 2 | a, b := a, b | ^ diff --git a/vlib/v/checker/tests/assign_expr_undefined_err_c.out b/vlib/v/checker/tests/assign_expr_undefined_err_c.out index ec4032b800..a68f329f65 100644 --- a/vlib/v/checker/tests/assign_expr_undefined_err_c.out +++ b/vlib/v/checker/tests/assign_expr_undefined_err_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_undefined_err_c.v:2:10: error: undefined variable: `a` +vlib/v/checker/tests/assign_expr_undefined_err_c.vv:2:10: error: undefined variable: `a` 1 | fn main() { 2 | a, b := a + 1, b * 3 | ^ diff --git a/vlib/v/checker/tests/assign_expr_undefined_err_d.out b/vlib/v/checker/tests/assign_expr_undefined_err_d.out index 449f302481..4a8df8833a 100644 --- a/vlib/v/checker/tests/assign_expr_undefined_err_d.out +++ b/vlib/v/checker/tests/assign_expr_undefined_err_d.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_undefined_err_d.v:2:9: error: undefined variable: `s` +vlib/v/checker/tests/assign_expr_undefined_err_d.vv:2:9: error: undefined variable: `s` 1 | fn main() { 2 | s := '$s' | ^ diff --git a/vlib/v/checker/tests/assign_expr_undefined_err_e.out b/vlib/v/checker/tests/assign_expr_undefined_err_e.out index 185abb3be8..e505e4cd0d 100644 --- a/vlib/v/checker/tests/assign_expr_undefined_err_e.out +++ b/vlib/v/checker/tests/assign_expr_undefined_err_e.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_undefined_err_e.v:2:11: error: undefined variable: `a` +vlib/v/checker/tests/assign_expr_undefined_err_e.vv:2:11: error: undefined variable: `a` 1 | fn main() { 2 | a, b := -a, -b | ^ diff --git a/vlib/v/checker/tests/assign_expr_undefined_err_f.out b/vlib/v/checker/tests/assign_expr_undefined_err_f.out index 62f7ed3c89..1b1f9268f4 100644 --- a/vlib/v/checker/tests/assign_expr_undefined_err_f.out +++ b/vlib/v/checker/tests/assign_expr_undefined_err_f.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_expr_undefined_err_f.v:2:12: error: undefined variable: `a` +vlib/v/checker/tests/assign_expr_undefined_err_f.vv:2:12: error: undefined variable: `a` 1 | fn main() { 2 | a, b := (-a + 1), 1 | ^ diff --git a/vlib/v/checker/tests/assign_fn_call_on_left_side_err.out b/vlib/v/checker/tests/assign_fn_call_on_left_side_err.out index 6fa9db8f64..6a1a663873 100644 --- a/vlib/v/checker/tests/assign_fn_call_on_left_side_err.out +++ b/vlib/v/checker/tests/assign_fn_call_on_left_side_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_fn_call_on_left_side_err.v:6:2: error: cannot call function `foo()` on the left side of an assignment +vlib/v/checker/tests/assign_fn_call_on_left_side_err.vv:6:2: error: cannot call function `foo()` on the left side of an assignment 4 | 5 | fn main() { 6 | foo('s') = 1 diff --git a/vlib/v/checker/tests/assign_multi_immutable_err.out b/vlib/v/checker/tests/assign_multi_immutable_err.out index c1fcc40dea..44eb52dbe2 100644 --- a/vlib/v/checker/tests/assign_multi_immutable_err.out +++ b/vlib/v/checker/tests/assign_multi_immutable_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/assign_multi_immutable_err.v:4:2: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/assign_multi_immutable_err.vv:4:2: error: `a` is immutable, declare it with `mut` to make it mutable 2 | a := 10 3 | b := 20 4 | a, b = 1, 2 diff --git a/vlib/v/checker/tests/bin_lit_without_digit_err.out b/vlib/v/checker/tests/bin_lit_without_digit_err.out index 9a91ef6b8c..772f15d32f 100644 --- a/vlib/v/checker/tests/bin_lit_without_digit_err.out +++ b/vlib/v/checker/tests/bin_lit_without_digit_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/bin_lit_without_digit_err.v:2:14: error: number part of this binary is not provided +vlib/v/checker/tests/bin_lit_without_digit_err.vv:2:14: error: number part of this binary is not provided 1 | fn main() { 2 | println(0b**) | ^ diff --git a/vlib/v/checker/tests/bin_lit_wrong_digit_err.out b/vlib/v/checker/tests/bin_lit_wrong_digit_err.out index b04cc32c7f..e2f993aaff 100644 --- a/vlib/v/checker/tests/bin_lit_wrong_digit_err.out +++ b/vlib/v/checker/tests/bin_lit_wrong_digit_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/bin_lit_wrong_digit_err.v:2:18: error: this binary number has unsuitable digit `2` +vlib/v/checker/tests/bin_lit_wrong_digit_err.vv:2:18: error: this binary number has unsuitable digit `2` 1 | fn main() { 2 | println(0b1112) | ^ diff --git a/vlib/v/checker/tests/bit_op_wrong_left_type_err.out b/vlib/v/checker/tests/bit_op_wrong_left_type_err.out index d2f2394b30..d01db5ff5e 100644 --- a/vlib/v/checker/tests/bit_op_wrong_left_type_err.out +++ b/vlib/v/checker/tests/bit_op_wrong_left_type_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/bit_op_wrong_left_type_err.v:2:10: error: left type of `&` cannot be non-integer type any_float +vlib/v/checker/tests/bit_op_wrong_left_type_err.vv:2:10: error: left type of `&` cannot be non-integer type any_float 1 | fn main() { 2 | println(0.5 & 1) | ~~~ diff --git a/vlib/v/checker/tests/bit_op_wrong_right_type_err.out b/vlib/v/checker/tests/bit_op_wrong_right_type_err.out index 68f7359658..681fc9c2b3 100644 --- a/vlib/v/checker/tests/bit_op_wrong_right_type_err.out +++ b/vlib/v/checker/tests/bit_op_wrong_right_type_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/bit_op_wrong_right_type_err.v:2:14: error: right type of `|` cannot be non-integer type any_float +vlib/v/checker/tests/bit_op_wrong_right_type_err.vv:2:14: error: right type of `|` cannot be non-integer type any_float 1 | fn main() { 2 | println(1 | 0.5) | ~~~ diff --git a/vlib/v/checker/tests/blank_modify.out b/vlib/v/checker/tests/blank_modify.out index bbf627cb0d..e0d02e27f6 100644 --- a/vlib/v/checker/tests/blank_modify.out +++ b/vlib/v/checker/tests/blank_modify.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/blank_modify.v:2:2: error: cannot modify blank `_` identifier +vlib/v/checker/tests/blank_modify.vv:2:2: error: cannot modify blank `_` identifier 1 | fn main() { 2 | _ += 1 | ^ diff --git a/vlib/v/checker/tests/cannot_assign_array.out b/vlib/v/checker/tests/cannot_assign_array.out index 63a194cd8d..ae758d4105 100644 --- a/vlib/v/checker/tests/cannot_assign_array.out +++ b/vlib/v/checker/tests/cannot_assign_array.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/cannot_assign_array.v:9:11: error: cannot assign `[8]f64` to `ctx.vb` of type `string` +vlib/v/checker/tests/cannot_assign_array.vv:9:11: error: cannot assign `[8]f64` to `ctx.vb` of type `string` 7 | mut ctx := Context{} 8 | x := 2.32 9 | ctx.vb = [1.1, x, 3.3, 4.4, 5.0, 6.0, 7.0, 8.9]!! diff --git a/vlib/v/checker/tests/cannot_cast_to_struct.out b/vlib/v/checker/tests/cannot_cast_to_struct.out index b83e27bd21..e631940eaf 100644 --- a/vlib/v/checker/tests/cannot_cast_to_struct.out +++ b/vlib/v/checker/tests/cannot_cast_to_struct.out @@ -1,25 +1,25 @@ -vlib/v/checker/tests/cannot_cast_to_struct.v:10:12: error: cannot convert struct `Abc` to struct `Test` +vlib/v/checker/tests/cannot_cast_to_struct.vv:10:12: error: cannot convert struct `Abc` to struct `Test` 8 | 9 | fn main() { 10 | _ := Test(Abc{}) | ~~~~~ 11 | sum := Alphabet(Xyz{}) 12 | _ = Xyz(sum) -vlib/v/checker/tests/cannot_cast_to_struct.v:12:10: error: cannot cast `Alphabet` to struct +vlib/v/checker/tests/cannot_cast_to_struct.vv:12:10: error: cannot cast `Alphabet` to struct 10 | _ := Test(Abc{}) 11 | sum := Alphabet(Xyz{}) 12 | _ = Xyz(sum) | ~~~ 13 | _ = Xyz(5) 14 | s := Abc{} -vlib/v/checker/tests/cannot_cast_to_struct.v:13:10: error: cannot cast `any_int` to struct +vlib/v/checker/tests/cannot_cast_to_struct.vv:13:10: error: cannot cast `any_int` to struct 11 | sum := Alphabet(Xyz{}) 12 | _ = Xyz(sum) 13 | _ = Xyz(5) | ^ 14 | s := Abc{} 15 | _ = Xyz(&s) -vlib/v/checker/tests/cannot_cast_to_struct.v:15:10: error: cannot cast `&Abc` to struct +vlib/v/checker/tests/cannot_cast_to_struct.vv:15:10: error: cannot cast `&Abc` to struct 13 | _ = Xyz(5) 14 | s := Abc{} 15 | _ = Xyz(&s) diff --git a/vlib/v/checker/tests/cast_err.out b/vlib/v/checker/tests/cast_err.out index ab2794b24c..638f8804a0 100644 --- a/vlib/v/checker/tests/cast_err.out +++ b/vlib/v/checker/tests/cast_err.out @@ -1,18 +1,18 @@ -vlib/v/checker/tests/cast_err.v:3:11: error: cannot cast to bool - use e.g. `some_int != 0` instead +vlib/v/checker/tests/cast_err.vv:3:11: error: cannot cast to bool - use e.g. `some_int != 0` instead 1 | fn test_bool_cast() { 2 | v := 3 3 | _ = bool(v) | ^ 4 | _ = bool(&v) 5 | _ = bool([2]) -vlib/v/checker/tests/cast_err.v:4:11: error: cannot cast to bool - use e.g. `some_int != 0` instead +vlib/v/checker/tests/cast_err.vv:4:11: error: cannot cast to bool - use e.g. `some_int != 0` instead 2 | v := 3 3 | _ = bool(v) 4 | _ = bool(&v) | ^ 5 | _ = bool([2]) 6 | } -vlib/v/checker/tests/cast_err.v:5:11: error: cannot cast to bool - use e.g. `some_int != 0` instead +vlib/v/checker/tests/cast_err.vv:5:11: error: cannot cast to bool - use e.g. `some_int != 0` instead 3 | _ = bool(v) 4 | _ = bool(&v) 5 | _ = bool([2]) diff --git a/vlib/v/checker/tests/cast_string_err.out b/vlib/v/checker/tests/cast_string_err.out index 794ca79b29..0d3402f608 100644 --- a/vlib/v/checker/tests/cast_string_err.out +++ b/vlib/v/checker/tests/cast_string_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/cast_string_err.v:2:14: error: cannot cast type `any_int` to string, use `x.str()` instead +vlib/v/checker/tests/cast_string_err.vv:2:14: error: cannot cast type `any_int` to string, use `x.str()` instead 1 | fn main() { 2 | a := string(1) | ^ diff --git a/vlib/v/checker/tests/cast_string_with_byte_err.out b/vlib/v/checker/tests/cast_string_with_byte_err.out index c185f6ed06..8761fb78cc 100644 --- a/vlib/v/checker/tests/cast_string_with_byte_err.out +++ b/vlib/v/checker/tests/cast_string_with_byte_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/cast_string_with_byte_err.v:2:19: error: can not cast type `byte` to string, use `by.str()` instead. +vlib/v/checker/tests/cast_string_with_byte_err.vv:2:19: error: can not cast type `byte` to string, use `by.str()` instead. 1 | for by in 'abc' { 2 | println(string(by)) | ~~ diff --git a/vlib/v/checker/tests/const_define_in_function_err.out b/vlib/v/checker/tests/const_define_in_function_err.out index 7c65f354a1..e3b3544b5a 100644 --- a/vlib/v/checker/tests/const_define_in_function_err.out +++ b/vlib/v/checker/tests/const_define_in_function_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/const_define_in_function_err.v:2:2: error: const can only be defined at the top level (outside of functions) +vlib/v/checker/tests/const_define_in_function_err.vv:2:2: error: const can only be defined at the top level (outside of functions) 1 | fn main() { 2 | const (a = 1) | ~~~~~ diff --git a/vlib/v/checker/tests/const_field_add_err.out b/vlib/v/checker/tests/const_field_add_err.out index 6a4ebc25bc..12505828f1 100644 --- a/vlib/v/checker/tests/const_field_add_err.out +++ b/vlib/v/checker/tests/const_field_add_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/const_field_add_err.v:6:2: error: cannot modify constant `a` +vlib/v/checker/tests/const_field_add_err.vv:6:2: error: cannot modify constant `a` 4 | 5 | fn main() { 6 | a += 1 diff --git a/vlib/v/checker/tests/const_field_dec_err.out b/vlib/v/checker/tests/const_field_dec_err.out index a40e1d858a..e0b9acb422 100644 --- a/vlib/v/checker/tests/const_field_dec_err.out +++ b/vlib/v/checker/tests/const_field_dec_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/const_field_dec_err.v:6:2: error: cannot modify constant `a` +vlib/v/checker/tests/const_field_dec_err.vv:6:2: error: cannot modify constant `a` 4 | 5 | fn main() { 6 | a-- diff --git a/vlib/v/checker/tests/const_field_inc_err.out b/vlib/v/checker/tests/const_field_inc_err.out index c3a44f180e..adeee6035e 100644 --- a/vlib/v/checker/tests/const_field_inc_err.out +++ b/vlib/v/checker/tests/const_field_inc_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/const_field_inc_err.v:6:2: error: cannot modify constant `a` +vlib/v/checker/tests/const_field_inc_err.vv:6:2: error: cannot modify constant `a` 4 | 5 | fn main() { 6 | a++ diff --git a/vlib/v/checker/tests/const_field_name_duplicate_err.out b/vlib/v/checker/tests/const_field_name_duplicate_err.out index 040afb7e50..e887c13926 100644 --- a/vlib/v/checker/tests/const_field_name_duplicate_err.out +++ b/vlib/v/checker/tests/const_field_name_duplicate_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/const_field_name_duplicate_err.v:3:2: error: duplicate const `aaa` +vlib/v/checker/tests/const_field_name_duplicate_err.vv:3:2: error: duplicate const `aaa` 1 | const ( 2 | aaa = 1 3 | aaa = 2 diff --git a/vlib/v/checker/tests/const_field_name_snake_case.out b/vlib/v/checker/tests/const_field_name_snake_case.out index 5cdd8f6c1e..ff997e441d 100644 --- a/vlib/v/checker/tests/const_field_name_snake_case.out +++ b/vlib/v/checker/tests/const_field_name_snake_case.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/const_field_name_snake_case.v:2:2: warning: const names cannot contain uppercase letters, use snake_case instead +vlib/v/checker/tests/const_field_name_snake_case.vv:2:2: warning: const names cannot contain uppercase letters, use snake_case instead 1 | const ( 2 | Red = 1 | ~~~ diff --git a/vlib/v/checker/tests/const_field_sub_err.out b/vlib/v/checker/tests/const_field_sub_err.out index fa0e8fb182..782520b8ec 100644 --- a/vlib/v/checker/tests/const_field_sub_err.out +++ b/vlib/v/checker/tests/const_field_sub_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/const_field_sub_err.v:6:2: error: cannot modify constant `a` +vlib/v/checker/tests/const_field_sub_err.vv:6:2: error: cannot modify constant `a` 4 | 5 | fn main() { 6 | a -= 1 diff --git a/vlib/v/checker/tests/dec_lit_wrong_digit_err.out b/vlib/v/checker/tests/dec_lit_wrong_digit_err.out index 7f89665eee..9166f4c153 100644 --- a/vlib/v/checker/tests/dec_lit_wrong_digit_err.out +++ b/vlib/v/checker/tests/dec_lit_wrong_digit_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/dec_lit_wrong_digit_err.v:2:18: error: this number has unsuitable digit `q` +vlib/v/checker/tests/dec_lit_wrong_digit_err.vv:2:18: error: this number has unsuitable digit `q` 1 | fn main() { 2 | println(12345qrst+10) | ^ diff --git a/vlib/v/checker/tests/div_op_wrong_left_type_err_a.out b/vlib/v/checker/tests/div_op_wrong_left_type_err_a.out index 78bd4d8a66..282b59c41a 100644 --- a/vlib/v/checker/tests/div_op_wrong_left_type_err_a.out +++ b/vlib/v/checker/tests/div_op_wrong_left_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/div_op_wrong_left_type_err_a.v:3:13: error: mismatched types `Aaa` and `any_int` +vlib/v/checker/tests/div_op_wrong_left_type_err_a.vv:3:13: error: mismatched types `Aaa` and `any_int` 1 | struct Aaa{} 2 | fn main() { 3 | println(Aaa{} / 10) diff --git a/vlib/v/checker/tests/div_op_wrong_left_type_err_b.out b/vlib/v/checker/tests/div_op_wrong_left_type_err_b.out index fb6a6c8fb0..95289c85cd 100644 --- a/vlib/v/checker/tests/div_op_wrong_left_type_err_b.out +++ b/vlib/v/checker/tests/div_op_wrong_left_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/div_op_wrong_left_type_err_b.v:2:13: error: mismatched types `[]int` and `any_int` +vlib/v/checker/tests/div_op_wrong_left_type_err_b.vv:2:13: error: mismatched types `[]int` and `any_int` 1 | fn main() { 2 | println([1,2,3] / 10) | ~~~~~~~ diff --git a/vlib/v/checker/tests/div_op_wrong_left_type_err_c.out b/vlib/v/checker/tests/div_op_wrong_left_type_err_c.out index 240fa6ea4b..0e6e0bc971 100644 --- a/vlib/v/checker/tests/div_op_wrong_left_type_err_c.out +++ b/vlib/v/checker/tests/div_op_wrong_left_type_err_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/div_op_wrong_left_type_err_c.v:3:13: error: mismatched types `map_string_int` and `any_int` +vlib/v/checker/tests/div_op_wrong_left_type_err_c.vv:3:13: error: mismatched types `map_string_int` and `any_int` 1 | fn main() { 2 | a := map[string]int 3 | println(a / 10) diff --git a/vlib/v/checker/tests/div_op_wrong_right_type_err_a.out b/vlib/v/checker/tests/div_op_wrong_right_type_err_a.out index ef62bd695d..ef4d076945 100644 --- a/vlib/v/checker/tests/div_op_wrong_right_type_err_a.out +++ b/vlib/v/checker/tests/div_op_wrong_right_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/div_op_wrong_right_type_err_a.v:3:18: error: mismatched types `any_int` and `Aaa` +vlib/v/checker/tests/div_op_wrong_right_type_err_a.vv:3:18: error: mismatched types `any_int` and `Aaa` 1 | struct Aaa{} 2 | fn main() { 3 | println(10 / Aaa{}) diff --git a/vlib/v/checker/tests/div_op_wrong_right_type_err_b.out b/vlib/v/checker/tests/div_op_wrong_right_type_err_b.out index 5a819b1844..5f3cf4be71 100644 --- a/vlib/v/checker/tests/div_op_wrong_right_type_err_b.out +++ b/vlib/v/checker/tests/div_op_wrong_right_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/div_op_wrong_right_type_err_b.v:2:18: error: mismatched types `any_int` and `[]int` +vlib/v/checker/tests/div_op_wrong_right_type_err_b.vv:2:18: error: mismatched types `any_int` and `[]int` 1 | fn main() { 2 | println(10 / [1,2,3]) | ~~~~~~~ diff --git a/vlib/v/checker/tests/div_op_wrong_right_type_err_c.out b/vlib/v/checker/tests/div_op_wrong_right_type_err_c.out index 0b7df6bae0..5159d2e417 100644 --- a/vlib/v/checker/tests/div_op_wrong_right_type_err_c.out +++ b/vlib/v/checker/tests/div_op_wrong_right_type_err_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/div_op_wrong_right_type_err_c.v:3:18: error: mismatched types `any_int` and `map_string_int` +vlib/v/checker/tests/div_op_wrong_right_type_err_c.vv:3:18: error: mismatched types `any_int` and `map_string_int` 1 | fn main() { 2 | a := map[string]int 3 | println(10 / a) diff --git a/vlib/v/checker/tests/division_by_zero_float_err.out b/vlib/v/checker/tests/division_by_zero_float_err.out index f7b7609eff..7a2ee8d538 100644 --- a/vlib/v/checker/tests/division_by_zero_float_err.out +++ b/vlib/v/checker/tests/division_by_zero_float_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/division_by_zero_float_err.v:2:14: error: division by zero +vlib/v/checker/tests/division_by_zero_float_err.vv:2:14: error: division by zero 1 | fn main() { 2 | println(1.0/0.0) | ~~~ diff --git a/vlib/v/checker/tests/division_by_zero_int_err.out b/vlib/v/checker/tests/division_by_zero_int_err.out index abfb9e4392..6b2ed194de 100644 --- a/vlib/v/checker/tests/division_by_zero_int_err.out +++ b/vlib/v/checker/tests/division_by_zero_int_err.out @@ -1,24 +1,24 @@ -vlib/v/checker/tests/division_by_zero_int_err.v:2:12: error: division by zero +vlib/v/checker/tests/division_by_zero_int_err.vv:2:12: error: division by zero 1 | fn main() { 2 | println(1/0) | ^ 3 | println(1/0x0) 4 | println(1/0b0) -vlib/v/checker/tests/division_by_zero_int_err.v:3:12: error: division by zero +vlib/v/checker/tests/division_by_zero_int_err.vv:3:12: error: division by zero 1 | fn main() { 2 | println(1/0) 3 | println(1/0x0) | ~~~ 4 | println(1/0b0) 5 | println(1/0o0) -vlib/v/checker/tests/division_by_zero_int_err.v:4:12: error: division by zero +vlib/v/checker/tests/division_by_zero_int_err.vv:4:12: error: division by zero 2 | println(1/0) 3 | println(1/0x0) 4 | println(1/0b0) | ~~~ 5 | println(1/0o0) 6 | } -vlib/v/checker/tests/division_by_zero_int_err.v:5:12: error: division by zero +vlib/v/checker/tests/division_by_zero_int_err.vv:5:12: error: division by zero 3 | println(1/0x0) 4 | println(1/0b0) 5 | println(1/0o0) diff --git a/vlib/v/checker/tests/enum_err.out b/vlib/v/checker/tests/enum_err.out index bd5f9df3bc..9256d7f6ea 100644 --- a/vlib/v/checker/tests/enum_err.out +++ b/vlib/v/checker/tests/enum_err.out @@ -1,11 +1,11 @@ -vlib/v/checker/tests/enum_err.v:4:13: error: default value for enum has to be an integer +vlib/v/checker/tests/enum_err.vv:4:13: error: default value for enum has to be an integer 2 | 3 | enum Color { 4 | green = 'green' | ~~~~~~~ 5 | yellow = 1+1 6 | blue -vlib/v/checker/tests/enum_err.v:5:14: error: default value for enum has to be an integer +vlib/v/checker/tests/enum_err.vv:5:14: error: default value for enum has to be an integer 3 | enum Color { 4 | green = 'green' 5 | yellow = 1+1 diff --git a/vlib/v/checker/tests/enum_field_name_duplicate_err.out b/vlib/v/checker/tests/enum_field_name_duplicate_err.out index dc2b43f34f..6f1de8d93a 100644 --- a/vlib/v/checker/tests/enum_field_name_duplicate_err.out +++ b/vlib/v/checker/tests/enum_field_name_duplicate_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/enum_field_name_duplicate_err.v:5:2: error: field name `green` duplicate +vlib/v/checker/tests/enum_field_name_duplicate_err.vv:5:2: error: field name `green` duplicate 3 | yellow 4 | blue 5 | green diff --git a/vlib/v/checker/tests/enum_field_overflow.out b/vlib/v/checker/tests/enum_field_overflow.out index 5e16001122..26f58437f4 100644 --- a/vlib/v/checker/tests/enum_field_overflow.out +++ b/vlib/v/checker/tests/enum_field_overflow.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/enum_field_overflow.v:4:2: error: enum value overflows +vlib/v/checker/tests/enum_field_overflow.vv:4:2: error: enum value overflows 2 | red 3 | green = 2147483647 4 | blue diff --git a/vlib/v/checker/tests/enum_field_value_duplicate_err.out b/vlib/v/checker/tests/enum_field_value_duplicate_err.out index a75d693e2a..a2926dc1a0 100644 --- a/vlib/v/checker/tests/enum_field_value_duplicate_err.out +++ b/vlib/v/checker/tests/enum_field_value_duplicate_err.out @@ -1,11 +1,11 @@ -vlib/v/checker/tests/enum_field_value_duplicate_err.v:3:10: error: enum value `0` already exists +vlib/v/checker/tests/enum_field_value_duplicate_err.vv:3:10: error: enum value `0` already exists 1 | enum Color { 2 | red 3 | green = 0 | ^ 4 | blue = 1 5 | alpha = 1 -vlib/v/checker/tests/enum_field_value_duplicate_err.v:5:10: error: enum value `1` already exists +vlib/v/checker/tests/enum_field_value_duplicate_err.vv:5:10: error: enum value `1` already exists 3 | green = 0 4 | blue = 1 5 | alpha = 1 diff --git a/vlib/v/checker/tests/enum_field_value_overflow.out b/vlib/v/checker/tests/enum_field_value_overflow.out index 08c7236129..c6bb9c0a10 100644 --- a/vlib/v/checker/tests/enum_field_value_overflow.out +++ b/vlib/v/checker/tests/enum_field_value_overflow.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/enum_field_value_overflow.v:3:10: error: enum value `2147483648` overflows int +vlib/v/checker/tests/enum_field_value_overflow.vv:3:10: error: enum value `2147483648` overflows int 1 | enum Color { 2 | red 3 | green = 2147483648 diff --git a/vlib/v/checker/tests/float_lit_exp_not_integer_err.out b/vlib/v/checker/tests/float_lit_exp_not_integer_err.out index 282375012d..8d7b1d8c99 100644 --- a/vlib/v/checker/tests/float_lit_exp_not_integer_err.out +++ b/vlib/v/checker/tests/float_lit_exp_not_integer_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/float_lit_exp_not_integer_err.v:2:17: error: exponential part should be integer +vlib/v/checker/tests/float_lit_exp_not_integer_err.vv:2:17: error: exponential part should be integer 1 | fn main() { 2 | println(45e2.5) | ^ diff --git a/vlib/v/checker/tests/float_lit_exp_without_digit_err.out b/vlib/v/checker/tests/float_lit_exp_without_digit_err.out index e53c5c8202..c5be9e2196 100644 --- a/vlib/v/checker/tests/float_lit_exp_without_digit_err.out +++ b/vlib/v/checker/tests/float_lit_exp_without_digit_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/float_lit_exp_without_digit_err.v:2:14: error: exponent has no digits +vlib/v/checker/tests/float_lit_exp_without_digit_err.vv:2:14: error: exponent has no digits 1 | fn main() { 2 | println(2E) | ^ diff --git a/vlib/v/checker/tests/float_lit_too_many_points_err.out b/vlib/v/checker/tests/float_lit_too_many_points_err.out index 6c15a29497..cbf085b742 100644 --- a/vlib/v/checker/tests/float_lit_too_many_points_err.out +++ b/vlib/v/checker/tests/float_lit_too_many_points_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/float_lit_too_many_points_err.v:2:19: error: too many decimal points in number +vlib/v/checker/tests/float_lit_too_many_points_err.vv:2:19: error: too many decimal points in number 1 | fn main() { 2 | println(123.45.67) | ^ diff --git a/vlib/v/checker/tests/float_modulo_err.out b/vlib/v/checker/tests/float_modulo_err.out index 1208f08aca..33ae5625d2 100644 --- a/vlib/v/checker/tests/float_modulo_err.out +++ b/vlib/v/checker/tests/float_modulo_err.out @@ -1,10 +1,10 @@ -vlib/v/checker/tests/float_modulo_err.v:2:13: error: float modulo not allowed, use math.fmod() instead +vlib/v/checker/tests/float_modulo_err.vv:2:13: error: float modulo not allowed, use math.fmod() instead 1 | fn main() { 2 | println(3.0 % 2.0) | ~~~ 3 | println(f32(3.0) % f32(2.0)) 4 | } -vlib/v/checker/tests/float_modulo_err.v:3:17: error: float modulo not allowed, use math.fmod() instead +vlib/v/checker/tests/float_modulo_err.vv:3:17: error: float modulo not allowed, use math.fmod() instead 1 | fn main() { 2 | println(3.0 % 2.0) 3 | println(f32(3.0) % f32(2.0)) diff --git a/vlib/v/checker/tests/fn_type_exists.out b/vlib/v/checker/tests/fn_type_exists.out index 8962902ad9..58a36e9430 100644 --- a/vlib/v/checker/tests/fn_type_exists.out +++ b/vlib/v/checker/tests/fn_type_exists.out @@ -1,9 +1,9 @@ -vlib/v/checker/tests/fn_type_exists.v:1:1: error: type `Pants` doesn't exist +vlib/v/checker/tests/fn_type_exists.vv:1:1: error: type `Pants` doesn't exist 1 | type PantsCreator = fn (a Shirt) Pants | ~~~~~~~~~~~~~~~~~ 2 | 3 | type PantsConsumer = fn (p Pants) -vlib/v/checker/tests/fn_type_exists.v:3:1: error: type `Pants` doesn't exist +vlib/v/checker/tests/fn_type_exists.vv:3:1: error: type `Pants` doesn't exist 1 | type PantsCreator = fn (a Shirt) Pants 2 | 3 | type PantsConsumer = fn (p Pants) diff --git a/vlib/v/checker/tests/for_in_index_optional.out b/vlib/v/checker/tests/for_in_index_optional.out index 5ee1eb8682..bbab32abb3 100644 --- a/vlib/v/checker/tests/for_in_index_optional.out +++ b/vlib/v/checker/tests/for_in_index_optional.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/for_in_index_optional.v:3:18: error: for in: cannot index `?[]string` +vlib/v/checker/tests/for_in_index_optional.vv:3:18: error: for in: cannot index `?[]string` 1 | import os 2 | fn main() { 3 | for file in os.ls('.') { diff --git a/vlib/v/checker/tests/for_in_index_type.out b/vlib/v/checker/tests/for_in_index_type.out index e04978ca57..5c6990d818 100644 --- a/vlib/v/checker/tests/for_in_index_type.out +++ b/vlib/v/checker/tests/for_in_index_type.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/for_in_index_type.v:2:11: error: for in: cannot index `any_int` +vlib/v/checker/tests/for_in_index_type.vv:2:11: error: for in: cannot index `any_int` 1 | fn main() { 2 | for a in 52 { | ~~ diff --git a/vlib/v/checker/tests/for_in_map_one_variable_err.out b/vlib/v/checker/tests/for_in_map_one_variable_err.out index ae4281b8cf..48c26cce49 100644 --- a/vlib/v/checker/tests/for_in_map_one_variable_err.out +++ b/vlib/v/checker/tests/for_in_map_one_variable_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/for_in_map_one_variable_err.v:3:6: error: declare a key and a value variable when ranging a map: `for key, val in map {` +vlib/v/checker/tests/for_in_map_one_variable_err.vv:3:6: error: declare a key and a value variable when ranging a map: `for key, val in map {` use `_` if you do not need the variable 1 | fn main() { 2 | kvs := {'foo':'bar'} diff --git a/vlib/v/checker/tests/for_in_range_not_match_type.out b/vlib/v/checker/tests/for_in_range_not_match_type.out index be4062bae9..d969830b9d 100644 --- a/vlib/v/checker/tests/for_in_range_not_match_type.out +++ b/vlib/v/checker/tests/for_in_range_not_match_type.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/for_in_range_not_match_type.v:2:11: error: range types do not match +vlib/v/checker/tests/for_in_range_not_match_type.vv:2:11: error: range types do not match 1 | fn main() { 2 | for i in 10..10.5 { | ~~ diff --git a/vlib/v/checker/tests/for_in_range_string_type.out b/vlib/v/checker/tests/for_in_range_string_type.out index 05bbda634b..4d3d531112 100644 --- a/vlib/v/checker/tests/for_in_range_string_type.out +++ b/vlib/v/checker/tests/for_in_range_string_type.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/for_in_range_string_type.v:2:11: error: range type can not be string +vlib/v/checker/tests/for_in_range_string_type.vv:2:11: error: range type can not be string 1 | fn main() { 2 | for i in 'a'..'b' { | ~~~ diff --git a/vlib/v/checker/tests/function_arg_mutable_err.out b/vlib/v/checker/tests/function_arg_mutable_err.out index 6c31fb1433..2ecc3eee28 100644 --- a/vlib/v/checker/tests/function_arg_mutable_err.out +++ b/vlib/v/checker/tests/function_arg_mutable_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/function_arg_mutable_err.v:1:18: error: mutable arguments are only allowed for arrays, maps, and structs +vlib/v/checker/tests/function_arg_mutable_err.vv:1:18: error: mutable arguments are only allowed for arrays, maps, and structs return values instead: `fn foo(mut n int) {` => `fn foo(n int) int {` 1 | fn mod_ptr(mut a int) { | ~~~ diff --git a/vlib/v/checker/tests/function_arg_redefinition.out b/vlib/v/checker/tests/function_arg_redefinition.out index b6a513dd9f..e540131f3b 100644 --- a/vlib/v/checker/tests/function_arg_redefinition.out +++ b/vlib/v/checker/tests/function_arg_redefinition.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/function_arg_redefinition.v:1:17: error: redefinition of parameter `para1` +vlib/v/checker/tests/function_arg_redefinition.vv:1:17: error: redefinition of parameter `para1` 1 | fn f(para1 int, para1 f32) int { | ~~~~~ 2 | return para1 diff --git a/vlib/v/checker/tests/function_missing_return_type.out b/vlib/v/checker/tests/function_missing_return_type.out index 7c15bd1854..70c8c0ded1 100644 --- a/vlib/v/checker/tests/function_missing_return_type.out +++ b/vlib/v/checker/tests/function_missing_return_type.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/function_missing_return_type.v:1:1: error: missing return at end of function `h` +vlib/v/checker/tests/function_missing_return_type.vv:1:1: error: missing return at end of function `h` 1 | fn h() int { | ~~~~~~~~~~ 2 | } diff --git a/vlib/v/checker/tests/function_variadic_arg_non_final.out b/vlib/v/checker/tests/function_variadic_arg_non_final.out index 38cc4481b4..338928c471 100644 --- a/vlib/v/checker/tests/function_variadic_arg_non_final.out +++ b/vlib/v/checker/tests/function_variadic_arg_non_final.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/function_variadic_arg_non_final.v:1:6: error: cannot use ...(variadic) with non-final parameter para1 +vlib/v/checker/tests/function_variadic_arg_non_final.vv:1:6: error: cannot use ...(variadic) with non-final parameter para1 1 | fn f(para1 ...int, para2 f32) int { | ~~~~~ 2 | return 22 diff --git a/vlib/v/checker/tests/function_wrong_arg_type.out b/vlib/v/checker/tests/function_wrong_arg_type.out index b2efcac8b8..68dd3932e6 100644 --- a/vlib/v/checker/tests/function_wrong_arg_type.out +++ b/vlib/v/checker/tests/function_wrong_arg_type.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/function_wrong_arg_type.v:7:7: error: cannot use type `f64` as type `int` in argument 1 to `f` +vlib/v/checker/tests/function_wrong_arg_type.vv:7:7: error: cannot use type `f64` as type `int` in argument 1 to `f` 5 | fn main() { 6 | a := 12.3 7 | q := f(a) diff --git a/vlib/v/checker/tests/function_wrong_return_type.out b/vlib/v/checker/tests/function_wrong_return_type.out index 25f13687d7..e56dd83f21 100644 --- a/vlib/v/checker/tests/function_wrong_return_type.out +++ b/vlib/v/checker/tests/function_wrong_return_type.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/function_wrong_return_type.v:2:9: error: cannot use `any_float` as type `int` in return argument +vlib/v/checker/tests/function_wrong_return_type.vv:2:9: error: cannot use `any_float` as type `int` in return argument 1 | fn h() int { 2 | return 3.14 | ~~~~ diff --git a/vlib/v/checker/tests/globals/incorrect_name_global.out b/vlib/v/checker/tests/globals/incorrect_name_global.out index 7f23d5a191..150126177b 100644 --- a/vlib/v/checker/tests/globals/incorrect_name_global.out +++ b/vlib/v/checker/tests/globals/incorrect_name_global.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/globals/incorrect_name_global.v:1:1: error: global name `A` cannot contain uppercase letters, use snake_case instead +vlib/v/checker/tests/globals/incorrect_name_global.vv:1:1: error: global name `A` cannot contain uppercase letters, use snake_case instead 1 | __global A int = 1 | ~~~~~~~~~~ diff --git a/vlib/v/checker/tests/globals_error.out b/vlib/v/checker/tests/globals_error.out index 4903c540a0..b16fd93ec0 100644 --- a/vlib/v/checker/tests/globals_error.out +++ b/vlib/v/checker/tests/globals_error.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/globals_error.v:2:1: error: use `v --enable-globals ...` to enable globals +vlib/v/checker/tests/globals_error.vv:2:1: error: use `v --enable-globals ...` to enable globals 1 | 2 | __global rfcnt int | ~~~~~~~~ diff --git a/vlib/v/checker/tests/go_expr.out b/vlib/v/checker/tests/go_expr.out index 7faa371b8c..e19c961574 100644 --- a/vlib/v/checker/tests/go_expr.out +++ b/vlib/v/checker/tests/go_expr.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/go_expr.v:2:5: error: expression in `go` must be a function call +vlib/v/checker/tests/go_expr.vv:2:5: error: expression in `go` must be a function call 1 | fn main() { 2 | go 1 | ^ diff --git a/vlib/v/checker/tests/go_mut_arg.out b/vlib/v/checker/tests/go_mut_arg.out index 3544f2cd87..70271b1fb9 100644 --- a/vlib/v/checker/tests/go_mut_arg.out +++ b/vlib/v/checker/tests/go_mut_arg.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/go_mut_arg.v:14:16: error: function in `go` statement cannot contain mutable non-reference arguments +vlib/v/checker/tests/go_mut_arg.vv:14:16: error: function in `go` statement cannot contain mutable non-reference arguments 12 | a: 0 13 | } 14 | go change(mut x) diff --git a/vlib/v/checker/tests/go_mut_receiver.out b/vlib/v/checker/tests/go_mut_receiver.out index 5033b5d2be..f8b2681b48 100644 --- a/vlib/v/checker/tests/go_mut_receiver.out +++ b/vlib/v/checker/tests/go_mut_receiver.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/go_mut_receiver.v:14:5: error: method in `go` statement cannot have non-reference mutable receiver +vlib/v/checker/tests/go_mut_receiver.vv:14:5: error: method in `go` statement cannot have non-reference mutable receiver 12 | a: 0 13 | } 14 | go x.change() diff --git a/vlib/v/checker/tests/hex_lit_without_digit_err.out b/vlib/v/checker/tests/hex_lit_without_digit_err.out index 7ca6c95f9c..f6407bac41 100644 --- a/vlib/v/checker/tests/hex_lit_without_digit_err.out +++ b/vlib/v/checker/tests/hex_lit_without_digit_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/hex_lit_without_digit_err.v:2:14: error: number part of this hexadecimal is not provided +vlib/v/checker/tests/hex_lit_without_digit_err.vv:2:14: error: number part of this hexadecimal is not provided 1 | fn main() { 2 | println(0x) | ^ diff --git a/vlib/v/checker/tests/hex_lit_wrong_digit_err.out b/vlib/v/checker/tests/hex_lit_wrong_digit_err.out index 68982e68d5..16ebb521cc 100644 --- a/vlib/v/checker/tests/hex_lit_wrong_digit_err.out +++ b/vlib/v/checker/tests/hex_lit_wrong_digit_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/hex_lit_wrong_digit_err.v:2:18: error: this hexadecimal number has unsuitable digit `g` +vlib/v/checker/tests/hex_lit_wrong_digit_err.vv:2:18: error: this hexadecimal number has unsuitable digit `g` 1 | fn main() { 2 | println(0x111ghi) | ^ diff --git a/vlib/v/checker/tests/if_expr_last_stmt.out b/vlib/v/checker/tests/if_expr_last_stmt.out index f51ffdd5f9..2fdeabc9ed 100644 --- a/vlib/v/checker/tests/if_expr_last_stmt.out +++ b/vlib/v/checker/tests/if_expr_last_stmt.out @@ -1,11 +1,11 @@ -vlib/v/checker/tests/if_expr_last_stmt.v:4:7: error: `if` expression requires an expression as the last statement of every branch +vlib/v/checker/tests/if_expr_last_stmt.vv:4:7: error: `if` expression requires an expression as the last statement of every branch 2 | _ = if true { 3 | 1 4 | } else if false { | ~~~~~~~~~~~~~ 5 | } else { 6 | } -vlib/v/checker/tests/if_expr_last_stmt.v:5:7: error: `if` expression requires an expression as the last statement of every branch +vlib/v/checker/tests/if_expr_last_stmt.vv:5:7: error: `if` expression requires an expression as the last statement of every branch 3 | 1 4 | } else if false { 5 | } else { diff --git a/vlib/v/checker/tests/if_expr_mismatch.out b/vlib/v/checker/tests/if_expr_mismatch.out index 0ab04350cd..6d877bb873 100644 --- a/vlib/v/checker/tests/if_expr_mismatch.out +++ b/vlib/v/checker/tests/if_expr_mismatch.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/if_expr_mismatch.v:2:7: error: mismatched types `string` and `any_int` +vlib/v/checker/tests/if_expr_mismatch.vv:2:7: error: mismatched types `string` and `any_int` 1 | fn main() { 2 | s := if true { '12' } else { 12 } | ~~ diff --git a/vlib/v/checker/tests/if_expr_no_else.out b/vlib/v/checker/tests/if_expr_no_else.out index c4d3306ca5..87fb3e75c9 100644 --- a/vlib/v/checker/tests/if_expr_no_else.out +++ b/vlib/v/checker/tests/if_expr_no_else.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/if_expr_no_else.v:2:9: error: `if` expression needs `else` clause +vlib/v/checker/tests/if_expr_no_else.vv:2:9: error: `if` expression needs `else` clause 1 | fn main() { 2 | _ = if true { 1 } | ~~ diff --git a/vlib/v/checker/tests/immutable_arg.out b/vlib/v/checker/tests/immutable_arg.out index 3583c2b847..6f466252fa 100644 --- a/vlib/v/checker/tests/immutable_arg.out +++ b/vlib/v/checker/tests/immutable_arg.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/immutable_arg.v:13:8: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/immutable_arg.vv:13:8: error: `a` is immutable, declare it with `mut` to make it mutable 11 | fn main() { 12 | a := St{e: 2} 13 | f(mut a) diff --git a/vlib/v/checker/tests/immutable_array_field_assign.out b/vlib/v/checker/tests/immutable_array_field_assign.out index 53638f57a8..b091e67f36 100644 --- a/vlib/v/checker/tests/immutable_array_field_assign.out +++ b/vlib/v/checker/tests/immutable_array_field_assign.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/immutable_array_field_assign.v:9:4: error: field `i` of struct `Aaa` is immutable +vlib/v/checker/tests/immutable_array_field_assign.vv:9:4: error: field `i` of struct `Aaa` is immutable 7 | i: [0] 8 | } 9 | a.i[0] = 3 diff --git a/vlib/v/checker/tests/immutable_array_field_shift.out b/vlib/v/checker/tests/immutable_array_field_shift.out index 054d702b8a..ec34ee2e07 100644 --- a/vlib/v/checker/tests/immutable_array_field_shift.out +++ b/vlib/v/checker/tests/immutable_array_field_shift.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/immutable_array_field_shift.v:14:4: error: field `a` of struct `Bbb` is immutable +vlib/v/checker/tests/immutable_array_field_shift.vv:14:4: error: field `a` of struct `Bbb` is immutable 12 | a: Aaa{} 13 | } 14 | b.a.i << 3 diff --git a/vlib/v/checker/tests/immutable_array_struct_assign.out b/vlib/v/checker/tests/immutable_array_struct_assign.out index dc14aff717..3675fe2d1e 100644 --- a/vlib/v/checker/tests/immutable_array_struct_assign.out +++ b/vlib/v/checker/tests/immutable_array_struct_assign.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/immutable_array_struct_assign.v:8:2: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/immutable_array_struct_assign.vv:8:2: error: `a` is immutable, declare it with `mut` to make it mutable 6 | fn main() { 7 | a := Aaa{} 8 | a.i[0] += 3 diff --git a/vlib/v/checker/tests/immutable_array_struct_shift.out b/vlib/v/checker/tests/immutable_array_struct_shift.out index b25cc8ef4d..b9a25fc5d5 100644 --- a/vlib/v/checker/tests/immutable_array_struct_shift.out +++ b/vlib/v/checker/tests/immutable_array_struct_shift.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/immutable_array_struct_shift.v:8:2: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/immutable_array_struct_shift.vv:8:2: error: `a` is immutable, declare it with `mut` to make it mutable 6 | fn main() { 7 | a := []Aaa{} 8 | a[0].i << 3 diff --git a/vlib/v/checker/tests/immutable_array_var.out b/vlib/v/checker/tests/immutable_array_var.out index b6e84c73a3..6e45b41fd9 100644 --- a/vlib/v/checker/tests/immutable_array_var.out +++ b/vlib/v/checker/tests/immutable_array_var.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/immutable_array_var.v:3:2: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/immutable_array_var.vv:3:2: error: `a` is immutable, declare it with `mut` to make it mutable 1 | fn main() { 2 | a := [1, 2] 3 | a << 3 diff --git a/vlib/v/checker/tests/immutable_field.out b/vlib/v/checker/tests/immutable_field.out index 616f879a6e..05b62143f5 100644 --- a/vlib/v/checker/tests/immutable_field.out +++ b/vlib/v/checker/tests/immutable_field.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/immutable_field.v:8:4: error: field `i1` of struct `Aaa` is immutable +vlib/v/checker/tests/immutable_field.vv:8:4: error: field `i1` of struct `Aaa` is immutable 6 | fn main() { 7 | a := Aaa{1} 8 | a.i1 = 2 diff --git a/vlib/v/checker/tests/immutable_field_postfix.out b/vlib/v/checker/tests/immutable_field_postfix.out index 886b3ca210..fb2c4d829f 100644 --- a/vlib/v/checker/tests/immutable_field_postfix.out +++ b/vlib/v/checker/tests/immutable_field_postfix.out @@ -1,11 +1,11 @@ -vlib/v/checker/tests/immutable_field_postfix.v:7:4: error: field `i` of struct `Aaa` is immutable +vlib/v/checker/tests/immutable_field_postfix.vv:7:4: error: field `i` of struct `Aaa` is immutable 5 | fn main() { 6 | mut a := Aaa{} 7 | a.i++ | ^ 8 | a.i-- 9 | } -vlib/v/checker/tests/immutable_field_postfix.v:8:4: error: field `i` of struct `Aaa` is immutable +vlib/v/checker/tests/immutable_field_postfix.vv:8:4: error: field `i` of struct `Aaa` is immutable 6 | mut a := Aaa{} 7 | a.i++ 8 | a.i-- diff --git a/vlib/v/checker/tests/immutable_map_postfix.out b/vlib/v/checker/tests/immutable_map_postfix.out index 1700910c6c..4948e8aa96 100644 --- a/vlib/v/checker/tests/immutable_map_postfix.out +++ b/vlib/v/checker/tests/immutable_map_postfix.out @@ -1,11 +1,11 @@ -vlib/v/checker/tests/immutable_map_postfix.v:3:2: error: `m` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/immutable_map_postfix.vv:3:2: error: `m` is immutable, declare it with `mut` to make it mutable 1 | fn main() { 2 | m := map[string]int 3 | m['test']++ | ^ 4 | m['test']-- 5 | } -vlib/v/checker/tests/immutable_map_postfix.v:4:2: error: `m` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/immutable_map_postfix.vv:4:2: error: `m` is immutable, declare it with `mut` to make it mutable 2 | m := map[string]int 3 | m['test']++ 4 | m['test']-- diff --git a/vlib/v/checker/tests/immutable_rec.out b/vlib/v/checker/tests/immutable_rec.out index 0e918b82a1..4c76ed4946 100644 --- a/vlib/v/checker/tests/immutable_rec.out +++ b/vlib/v/checker/tests/immutable_rec.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/immutable_rec.v:13:2: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/immutable_rec.vv:13:2: error: `a` is immutable, declare it with `mut` to make it mutable 11 | fn main() { 12 | a := St{e: 2} 13 | a.f() diff --git a/vlib/v/checker/tests/immutable_struct_postfix.out b/vlib/v/checker/tests/immutable_struct_postfix.out index a05e2f8853..86c87c22a1 100644 --- a/vlib/v/checker/tests/immutable_struct_postfix.out +++ b/vlib/v/checker/tests/immutable_struct_postfix.out @@ -1,11 +1,11 @@ -vlib/v/checker/tests/immutable_struct_postfix.v:8:2: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/immutable_struct_postfix.vv:8:2: error: `a` is immutable, declare it with `mut` to make it mutable 6 | fn main() { 7 | a := Aaa{} 8 | a.i++ | ^ 9 | a.i-- 10 | } -vlib/v/checker/tests/immutable_struct_postfix.v:9:2: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/immutable_struct_postfix.vv:9:2: error: `a` is immutable, declare it with `mut` to make it mutable 7 | a := Aaa{} 8 | a.i++ 9 | a.i-- diff --git a/vlib/v/checker/tests/immutable_var.out b/vlib/v/checker/tests/immutable_var.out index ca2ad158a1..c62c94f836 100644 --- a/vlib/v/checker/tests/immutable_var.out +++ b/vlib/v/checker/tests/immutable_var.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/immutable_var.v:3:2: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/immutable_var.vv:3:2: error: `a` is immutable, declare it with `mut` to make it mutable 1 | fn main() { 2 | a := 1 3 | a = 2 diff --git a/vlib/v/checker/tests/immutable_var_postfix.out b/vlib/v/checker/tests/immutable_var_postfix.out index 5139ded16a..ca056961b8 100644 --- a/vlib/v/checker/tests/immutable_var_postfix.out +++ b/vlib/v/checker/tests/immutable_var_postfix.out @@ -1,11 +1,11 @@ -vlib/v/checker/tests/immutable_var_postfix.v:3:2: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/immutable_var_postfix.vv:3:2: error: `a` is immutable, declare it with `mut` to make it mutable 1 | fn main() { 2 | a := 1 3 | a++ | ^ 4 | a-- 5 | } -vlib/v/checker/tests/immutable_var_postfix.v:4:2: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/immutable_var_postfix.vv:4:2: error: `a` is immutable, declare it with `mut` to make it mutable 2 | a := 1 3 | a++ 4 | a-- diff --git a/vlib/v/checker/tests/import_duplicate_err.out b/vlib/v/checker/tests/import_duplicate_err.out index 9e6441e05b..7971b63ad4 100644 --- a/vlib/v/checker/tests/import_duplicate_err.out +++ b/vlib/v/checker/tests/import_duplicate_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/import_duplicate_err.v:2:8: error: module name `time` duplicate +vlib/v/checker/tests/import_duplicate_err.vv:2:8: error: module name `time` duplicate 1 | import time 2 | import time | ~~~~ diff --git a/vlib/v/checker/tests/import_middle_err.out b/vlib/v/checker/tests/import_middle_err.out index fbca4308db..81c6639298 100644 --- a/vlib/v/checker/tests/import_middle_err.out +++ b/vlib/v/checker/tests/import_middle_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/import_middle_err.v:5:1: error: `import x` can only be declared at the beginning of the file +vlib/v/checker/tests/import_middle_err.vv:5:1: error: `import x` can only be declared at the beginning of the file 3 | println('hello, world') 4 | } 5 | import os diff --git a/vlib/v/checker/tests/import_mod_as_mod_err.out b/vlib/v/checker/tests/import_mod_as_mod_err.out index 1f0bb93312..47df47b670 100644 --- a/vlib/v/checker/tests/import_mod_as_mod_err.out +++ b/vlib/v/checker/tests/import_mod_as_mod_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/import_mod_as_mod_err.v:1:16: error: import alias `math as math` is redundant +vlib/v/checker/tests/import_mod_as_mod_err.vv:1:16: error: import alias `math as math` is redundant 1 | import math as math | ~~~~ 2 | diff --git a/vlib/v/checker/tests/import_mod_sub_as_sub_err.out b/vlib/v/checker/tests/import_mod_sub_as_sub_err.out index 6c9a63c246..7cf934d4a9 100644 --- a/vlib/v/checker/tests/import_mod_sub_as_sub_err.out +++ b/vlib/v/checker/tests/import_mod_sub_as_sub_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/import_mod_sub_as_sub_err.v:1:25: error: import alias `encoding.utf8 as utf8` is redundant +vlib/v/checker/tests/import_mod_sub_as_sub_err.vv:1:25: error: import alias `encoding.utf8 as utf8` is redundant 1 | import encoding.utf8 as utf8 | ~~~~ 2 | diff --git a/vlib/v/checker/tests/import_multiple_modules_err.out b/vlib/v/checker/tests/import_multiple_modules_err.out index 089c5e49e1..7688794bf8 100644 --- a/vlib/v/checker/tests/import_multiple_modules_err.out +++ b/vlib/v/checker/tests/import_multiple_modules_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/import_multiple_modules_err.v:1:13: error: cannot import multiple modules at a time +vlib/v/checker/tests/import_multiple_modules_err.vv:1:13: error: cannot import multiple modules at a time 1 | import time math | ~~~~ 2 | fn main() { diff --git a/vlib/v/checker/tests/import_not_same_line_err.out b/vlib/v/checker/tests/import_not_same_line_err.out index 8152295549..14a935eccc 100644 --- a/vlib/v/checker/tests/import_not_same_line_err.out +++ b/vlib/v/checker/tests/import_not_same_line_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/import_not_same_line_err.v:2:2: error: `import` statements must be a single line +vlib/v/checker/tests/import_not_same_line_err.vv:2:2: error: `import` statements must be a single line 1 | import 2 | time | ~~~~ diff --git a/vlib/v/checker/tests/import_symbol_empty.out b/vlib/v/checker/tests/import_symbol_empty.out index 86b42c37cd..0592fedb0d 100644 --- a/vlib/v/checker/tests/import_symbol_empty.out +++ b/vlib/v/checker/tests/import_symbol_empty.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/import_symbol_empty.v:1:12: error: empty `os` import set, remove `{}` +vlib/v/checker/tests/import_symbol_empty.vv:1:12: error: empty `os` import set, remove `{}` 1 | import os {} | ^ diff --git a/vlib/v/checker/tests/import_symbol_fn_err.out b/vlib/v/checker/tests/import_symbol_fn_err.out index e8038fbdc2..96c9e79b20 100644 --- a/vlib/v/checker/tests/import_symbol_fn_err.out +++ b/vlib/v/checker/tests/import_symbol_fn_err.out @@ -1,9 +1,9 @@ -vlib/v/checker/tests/import_symbol_fn_err.v:1:17: error: module `crypto` has no public fn named `userper()` +vlib/v/checker/tests/import_symbol_fn_err.vv:1:17: error: module `crypto` has no public fn named `userper()` 1 | import crypto { userper } | ~~~~~~~ 2 | fn main() { 3 | usurper() -vlib/v/checker/tests/import_symbol_fn_err.v:3:3: error: unknown function: usurper +vlib/v/checker/tests/import_symbol_fn_err.vv:3:3: error: unknown function: usurper 1 | import crypto { userper } 2 | fn main() { 3 | usurper() diff --git a/vlib/v/checker/tests/import_symbol_invalid.out b/vlib/v/checker/tests/import_symbol_invalid.out index 33eb2d6351..2193b15e0e 100644 --- a/vlib/v/checker/tests/import_symbol_invalid.out +++ b/vlib/v/checker/tests/import_symbol_invalid.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/import_symbol_invalid.v:1:17: error: import syntax error, please specify a valid fn or type name +vlib/v/checker/tests/import_symbol_invalid.vv:1:17: error: import syntax error, please specify a valid fn or type name 1 | import crypto { *_v } | ^ diff --git a/vlib/v/checker/tests/import_symbol_type_err.out b/vlib/v/checker/tests/import_symbol_type_err.out index 3a9f874b6f..2a700be8e8 100644 --- a/vlib/v/checker/tests/import_symbol_type_err.out +++ b/vlib/v/checker/tests/import_symbol_type_err.out @@ -1,9 +1,9 @@ -vlib/v/checker/tests/import_symbol_type_err.v:1:17: error: module `crypto` has no public type `Coin{}` +vlib/v/checker/tests/import_symbol_type_err.vv:1:17: error: module `crypto` has no public type `Coin{}` 1 | import crypto { Coin } | ~~~~ 2 | fn main() { 3 | println(Coin{}) -vlib/v/checker/tests/import_symbol_type_err.v:3:11: error: unknown struct: Coin +vlib/v/checker/tests/import_symbol_type_err.vv:3:11: error: unknown struct: Coin 1 | import crypto { Coin } 2 | fn main() { 3 | println(Coin{}) diff --git a/vlib/v/checker/tests/import_symbol_unclosed.out b/vlib/v/checker/tests/import_symbol_unclosed.out index 6bc027cd45..2ab6a66317 100644 --- a/vlib/v/checker/tests/import_symbol_unclosed.out +++ b/vlib/v/checker/tests/import_symbol_unclosed.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/import_symbol_unclosed.v:1:28: error: import syntax error, no closing `}` +vlib/v/checker/tests/import_symbol_unclosed.vv:1:28: error: import syntax error, no closing `}` 1 | import crypto.sha256 { sum ] | ^ diff --git a/vlib/v/checker/tests/import_syntax_err.out b/vlib/v/checker/tests/import_syntax_err.out index 5dca97136a..06b3499203 100644 --- a/vlib/v/checker/tests/import_syntax_err.out +++ b/vlib/v/checker/tests/import_syntax_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/import_syntax_err.v:1:12: error: cannot import multiple modules at a time +vlib/v/checker/tests/import_syntax_err.vv:1:12: error: cannot import multiple modules at a time 1 | import time, os | ^ 2 | fn main() { diff --git a/vlib/v/checker/tests/import_unused_warning.out b/vlib/v/checker/tests/import_unused_warning.out index 4ab7bbbf5a..38df8cde26 100644 --- a/vlib/v/checker/tests/import_unused_warning.out +++ b/vlib/v/checker/tests/import_unused_warning.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/import_unused_warning.v:1:8: warning: module 'time' is imported but never used +vlib/v/checker/tests/import_unused_warning.vv:1:8: warning: module 'time' is imported but never used 1 | import time | ~~~~ 2 | fn main() { diff --git a/vlib/v/checker/tests/in_mismatch_type.out b/vlib/v/checker/tests/in_mismatch_type.out index 7bc6c3778c..3a0e534508 100644 --- a/vlib/v/checker/tests/in_mismatch_type.out +++ b/vlib/v/checker/tests/in_mismatch_type.out @@ -1,74 +1,74 @@ -vlib/v/checker/tests/in_mismatch_type.v:10:7: error: the data type on the left of `in` (`any_int`) does not match the array item type (`string`) +vlib/v/checker/tests/in_mismatch_type.vv:10:7: error: the data type on the left of `in` (`any_int`) does not match the array item type (`string`) 8 | } 9 | s := 'abcd' 10 | if 1 in a_s { | ~~ 11 | println('ok') 12 | } -vlib/v/checker/tests/in_mismatch_type.v:13:7: error: the data type on the left of `in` (`any_int`) does not match the map key type `string` +vlib/v/checker/tests/in_mismatch_type.vv:13:7: error: the data type on the left of `in` (`any_int`) does not match the map key type `string` 11 | println('ok') 12 | } 13 | if 2 in m { | ~~ 14 | println('yeah') 15 | } -vlib/v/checker/tests/in_mismatch_type.v:16:7: error: the data type on the left of `in` must be a string (is `any_int`) +vlib/v/checker/tests/in_mismatch_type.vv:16:7: error: the data type on the left of `in` must be a string (is `any_int`) 14 | println('yeah') 15 | } 16 | if 3 in s { | ~~ 17 | println('dope') 18 | } -vlib/v/checker/tests/in_mismatch_type.v:19:9: error: the data type on the left of `in` must be a string (is `byte`) +vlib/v/checker/tests/in_mismatch_type.vv:19:9: error: the data type on the left of `in` must be a string (is `byte`) 17 | println('dope') 18 | } 19 | if `a` in s { | ~~ 20 | println("oh no :'(") 21 | } -vlib/v/checker/tests/in_mismatch_type.v:22:7: error: `in` can only be used with an array/map/string +vlib/v/checker/tests/in_mismatch_type.vv:22:7: error: `in` can only be used with an array/map/string 20 | println("oh no :'(") 21 | } 22 | if 1 in 12 { | ~~ 23 | println('right') 24 | } -vlib/v/checker/tests/in_mismatch_type.v:25:12: error: the data type on the left of `in` (`Int`) does not match the map key type `string` +vlib/v/checker/tests/in_mismatch_type.vv:25:12: error: the data type on the left of `in` (`Int`) does not match the map key type `string` 23 | println('right') 24 | } 25 | if Int(2) in m { | ~~ 26 | println('yeah') 27 | } -vlib/v/checker/tests/in_mismatch_type.v:28:9: error: the data type on the left of `in` (`string`) does not match the array item type (`int`) +vlib/v/checker/tests/in_mismatch_type.vv:28:9: error: the data type on the left of `in` (`string`) does not match the array item type (`int`) 26 | println('yeah') 27 | } 28 | if '3' in a_i { | ~~ 29 | println('sure') 30 | } -vlib/v/checker/tests/in_mismatch_type.v:31:9: error: the data type on the left of `in` (`string`) does not match the array item type (`int`) +vlib/v/checker/tests/in_mismatch_type.vv:31:9: error: the data type on the left of `in` (`string`) does not match the array item type (`int`) 29 | println('sure') 30 | } 31 | if '2' in a_i { | ~~ 32 | println('all right') 33 | } -vlib/v/checker/tests/in_mismatch_type.v:34:7: error: the data type on the left of `!in` (`any_int`) does not match the array item type (`string`) +vlib/v/checker/tests/in_mismatch_type.vv:34:7: error: the data type on the left of `!in` (`any_int`) does not match the array item type (`string`) 32 | println('all right') 33 | } 34 | if 1 !in a_s { | ~~~ 35 | println('ok') 36 | } -vlib/v/checker/tests/in_mismatch_type.v:37:9: error: the data type on the left of `!in` (`string`) does not match the array item type (`int`) +vlib/v/checker/tests/in_mismatch_type.vv:37:9: error: the data type on the left of `!in` (`string`) does not match the array item type (`int`) 35 | println('ok') 36 | } 37 | if '1' !in a_i { | ~~~ 38 | println('good') 39 | } -vlib/v/checker/tests/in_mismatch_type.v:41:7: error: the data type on the left of `!in` (`any_int`) does not match the map key type `string` +vlib/v/checker/tests/in_mismatch_type.vv:41:7: error: the data type on the left of `!in` (`any_int`) does not match the map key type `string` 39 | } 40 | 41 | if 5 !in m { diff --git a/vlib/v/checker/tests/incorrect_for_in_name_variable.out b/vlib/v/checker/tests/incorrect_for_in_name_variable.out index 90eafaea47..610ef46283 100644 --- a/vlib/v/checker/tests/incorrect_for_in_name_variable.out +++ b/vlib/v/checker/tests/incorrect_for_in_name_variable.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/incorrect_for_in_name_variable.v:3:6: error: variable name `_aa` cannot start with `_` +vlib/v/checker/tests/incorrect_for_in_name_variable.vv:3:6: error: variable name `_aa` cannot start with `_` 1 | fn main() { 2 | a := [1,2,3] 3 | for _aa in a { diff --git a/vlib/v/checker/tests/incorrect_name_alias_type.out b/vlib/v/checker/tests/incorrect_name_alias_type.out index 93c4b780b5..820e8d5a99 100644 --- a/vlib/v/checker/tests/incorrect_name_alias_type.out +++ b/vlib/v/checker/tests/incorrect_name_alias_type.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/incorrect_name_alias_type.v:1:1: error: type alias `integer` must begin with capital letter +vlib/v/checker/tests/incorrect_name_alias_type.vv:1:1: error: type alias `integer` must begin with capital letter 1 | type integer = int | ~~~~~~~~~~~~ \ No newline at end of file diff --git a/vlib/v/checker/tests/incorrect_name_enum.out b/vlib/v/checker/tests/incorrect_name_enum.out index 8bb8f17e68..27a4392f77 100644 --- a/vlib/v/checker/tests/incorrect_name_enum.out +++ b/vlib/v/checker/tests/incorrect_name_enum.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/incorrect_name_enum.v:1:1: error: enum name `color` must begin with capital letter +vlib/v/checker/tests/incorrect_name_enum.vv:1:1: error: enum name `color` must begin with capital letter 1 | enum color { | ~~~~~~~~~~ 2 | green diff --git a/vlib/v/checker/tests/incorrect_name_enum_field.out b/vlib/v/checker/tests/incorrect_name_enum_field.out index f2769ed11f..04f27487fd 100644 --- a/vlib/v/checker/tests/incorrect_name_enum_field.out +++ b/vlib/v/checker/tests/incorrect_name_enum_field.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/incorrect_name_enum_field.v:2:5: error: field name `Green` cannot contain uppercase letters, use snake_case instead +vlib/v/checker/tests/incorrect_name_enum_field.vv:2:5: error: field name `Green` cannot contain uppercase letters, use snake_case instead 1 | enum Color { 2 | Green | ~~~~~ diff --git a/vlib/v/checker/tests/incorrect_name_fn_type.out b/vlib/v/checker/tests/incorrect_name_fn_type.out index 21e61cb154..4ded7431c2 100644 --- a/vlib/v/checker/tests/incorrect_name_fn_type.out +++ b/vlib/v/checker/tests/incorrect_name_fn_type.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/incorrect_name_fn_type.v:1:1: error: fn type `callback` must begin with capital letter +vlib/v/checker/tests/incorrect_name_fn_type.vv:1:1: error: fn type `callback` must begin with capital letter 1 | type callback = fn () | ~~~~~~~~~~~~~ diff --git a/vlib/v/checker/tests/incorrect_name_function.out b/vlib/v/checker/tests/incorrect_name_function.out index f6c8faacde..0826b36a2e 100644 --- a/vlib/v/checker/tests/incorrect_name_function.out +++ b/vlib/v/checker/tests/incorrect_name_function.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/incorrect_name_function.v:1:1: error: function name `_my_fn` cannot start with `_` +vlib/v/checker/tests/incorrect_name_function.vv:1:1: error: function name `_my_fn` cannot start with `_` 1 | fn _my_fn() {} | ~~~~~~~~~~~ \ No newline at end of file diff --git a/vlib/v/checker/tests/incorrect_name_interface.out b/vlib/v/checker/tests/incorrect_name_interface.out index 2a92ea8af7..47d6a17067 100644 --- a/vlib/v/checker/tests/incorrect_name_interface.out +++ b/vlib/v/checker/tests/incorrect_name_interface.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/incorrect_name_interface.v:1:1: error: interface name `_MyInterface` must begin with capital letter +vlib/v/checker/tests/incorrect_name_interface.vv:1:1: error: interface name `_MyInterface` must begin with capital letter 1 | interface _MyInterface {} | ~~~~~~~~~ \ No newline at end of file diff --git a/vlib/v/checker/tests/incorrect_name_interface_method.out b/vlib/v/checker/tests/incorrect_name_interface_method.out index b3e10e24f5..daeda3e40c 100644 --- a/vlib/v/checker/tests/incorrect_name_interface_method.out +++ b/vlib/v/checker/tests/incorrect_name_interface_method.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/incorrect_name_interface_method.v:2:5: error: method name `_speak` cannot start with `_` +vlib/v/checker/tests/incorrect_name_interface_method.vv:2:5: error: method name `_speak` cannot start with `_` 1 | interface MyInterface { 2 | _speak() | ~~~~~~~~ diff --git a/vlib/v/checker/tests/incorrect_name_module.out b/vlib/v/checker/tests/incorrect_name_module.out index 3892aeb25f..4edc08ebda 100644 --- a/vlib/v/checker/tests/incorrect_name_module.out +++ b/vlib/v/checker/tests/incorrect_name_module.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/incorrect_name_module.v:1:1: error: module name `_A` cannot start with `_` +vlib/v/checker/tests/incorrect_name_module.vv:1:1: error: module name `_A` cannot start with `_` 1 | module _A | ~~~~~~~~~ \ No newline at end of file diff --git a/vlib/v/checker/tests/incorrect_name_struct.out b/vlib/v/checker/tests/incorrect_name_struct.out index 057530babb..03f1a93486 100644 --- a/vlib/v/checker/tests/incorrect_name_struct.out +++ b/vlib/v/checker/tests/incorrect_name_struct.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/incorrect_name_struct.v:1:8: error: struct name `abc` must begin with capital letter +vlib/v/checker/tests/incorrect_name_struct.vv:1:8: error: struct name `abc` must begin with capital letter 1 | struct abc {} | ~~~ \ No newline at end of file diff --git a/vlib/v/checker/tests/incorrect_name_struct_field.out b/vlib/v/checker/tests/incorrect_name_struct_field.out index 91c0a65649..22fddfcd2e 100644 --- a/vlib/v/checker/tests/incorrect_name_struct_field.out +++ b/vlib/v/checker/tests/incorrect_name_struct_field.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/incorrect_name_struct_field.v:2:5: error: field name `_a` cannot start with `_` +vlib/v/checker/tests/incorrect_name_struct_field.vv:2:5: error: field name `_a` cannot start with `_` 1 | struct Abc { 2 | _a int | ~~~~~~ diff --git a/vlib/v/checker/tests/incorrect_name_sum_type.out b/vlib/v/checker/tests/incorrect_name_sum_type.out index 1288b7ca06..25bf0f0ad2 100644 --- a/vlib/v/checker/tests/incorrect_name_sum_type.out +++ b/vlib/v/checker/tests/incorrect_name_sum_type.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/incorrect_name_sum_type.v:1:1: error: sum type `integer` must begin with capital letter +vlib/v/checker/tests/incorrect_name_sum_type.vv:1:1: error: sum type `integer` must begin with capital letter 1 | type integer = i8 | i16 | int | i64 | ~~~~~~~~~~~~ \ No newline at end of file diff --git a/vlib/v/checker/tests/incorrect_name_variable.out b/vlib/v/checker/tests/incorrect_name_variable.out index e4e7a1da47..7a3de827a5 100644 --- a/vlib/v/checker/tests/incorrect_name_variable.out +++ b/vlib/v/checker/tests/incorrect_name_variable.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/incorrect_name_variable.v:2:2: error: variable name `_abc` cannot start with `_` +vlib/v/checker/tests/incorrect_name_variable.vv:2:2: error: variable name `_abc` cannot start with `_` 1 | fn main() { 2 | _abc := 1 | ~~~~ diff --git a/vlib/v/checker/tests/index_expr.out b/vlib/v/checker/tests/index_expr.out index 0700c6dfaa..e799440fbf 100644 --- a/vlib/v/checker/tests/index_expr.out +++ b/vlib/v/checker/tests/index_expr.out @@ -1,39 +1,39 @@ -vlib/v/checker/tests/index_expr.v:3:7: error: type `int` does not support indexing +vlib/v/checker/tests/index_expr.vv:3:7: error: type `int` does not support indexing 1 | fn test_invalid_index() { 2 | v := 4 3 | _ = v[0] | ~~~ 4 | 5 | a := [2] -vlib/v/checker/tests/index_expr.v:6:7: error: non-integer index `[]int` (array type `[]int`) +vlib/v/checker/tests/index_expr.vv:6:7: error: non-integer index `[]int` (array type `[]int`) 4 | 5 | a := [2] 6 | _ = a[a] | ~~~ 7 | } 8 | -vlib/v/checker/tests/index_expr.v:11:7: error: type `int` does not support indexing +vlib/v/checker/tests/index_expr.vv:11:7: error: type `int` does not support indexing 9 | fn test_invalid_slice() { 10 | v := 4 11 | _ = v[1..] | ~~~~~ 12 | _ = v[..1] 13 | -vlib/v/checker/tests/index_expr.v:12:7: error: type `int` does not support indexing +vlib/v/checker/tests/index_expr.vv:12:7: error: type `int` does not support indexing 10 | v := 4 11 | _ = v[1..] 12 | _ = v[..1] | ~~~~~ 13 | 14 | a := [2] -vlib/v/checker/tests/index_expr.v:15:7: error: non-integer index `[]int` (array type `[]int`) +vlib/v/checker/tests/index_expr.vv:15:7: error: non-integer index `[]int` (array type `[]int`) 13 | 14 | a := [2] 15 | _ = a[a..] | ~~~~~ 16 | _ = a[..a] 17 | } -vlib/v/checker/tests/index_expr.v:16:7: error: non-integer index `[]int` (array type `[]int`) +vlib/v/checker/tests/index_expr.vv:16:7: error: non-integer index `[]int` (array type `[]int`) 14 | a := [2] 15 | _ = a[a..] 16 | _ = a[..a] diff --git a/vlib/v/checker/tests/int_modulo_by_zero_err.out b/vlib/v/checker/tests/int_modulo_by_zero_err.out index 85ad2fd9db..897304072c 100644 --- a/vlib/v/checker/tests/int_modulo_by_zero_err.out +++ b/vlib/v/checker/tests/int_modulo_by_zero_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/int_modulo_by_zero_err.v:2:17: error: modulo by zero +vlib/v/checker/tests/int_modulo_by_zero_err.vv:2:17: error: modulo by zero 1 | fn main() { 2 | println(3 % 0) | ^ diff --git a/vlib/v/checker/tests/invert_other_types_bits_error.out b/vlib/v/checker/tests/invert_other_types_bits_error.out index 19e3c84970..c6989bae0a 100644 --- a/vlib/v/checker/tests/invert_other_types_bits_error.out +++ b/vlib/v/checker/tests/invert_other_types_bits_error.out @@ -1,24 +1,24 @@ -vlib/v/checker/tests/invert_other_types_bits_error.v:2:13: error: operator ~ only defined on int types +vlib/v/checker/tests/invert_other_types_bits_error.vv:2:13: error: operator ~ only defined on int types 1 | fn main() { 2 | println(~3.0) | ^ 3 | println(~10.5) 4 | println(~'2') -vlib/v/checker/tests/invert_other_types_bits_error.v:3:13: error: operator ~ only defined on int types +vlib/v/checker/tests/invert_other_types_bits_error.vv:3:13: error: operator ~ only defined on int types 1 | fn main() { 2 | println(~3.0) 3 | println(~10.5) | ^ 4 | println(~'2') 5 | println(~[2, 4, 6]) -vlib/v/checker/tests/invert_other_types_bits_error.v:4:13: error: operator ~ only defined on int types +vlib/v/checker/tests/invert_other_types_bits_error.vv:4:13: error: operator ~ only defined on int types 2 | println(~3.0) 3 | println(~10.5) 4 | println(~'2') | ^ 5 | println(~[2, 4, 6]) 6 | } -vlib/v/checker/tests/invert_other_types_bits_error.v:5:13: error: operator ~ only defined on int types +vlib/v/checker/tests/invert_other_types_bits_error.vv:5:13: error: operator ~ only defined on int types 3 | println(~10.5) 4 | println(~'2') 5 | println(~[2, 4, 6]) diff --git a/vlib/v/checker/tests/is_type_not_exist.out b/vlib/v/checker/tests/is_type_not_exist.out index ecc8a22282..77c3e8a54b 100644 --- a/vlib/v/checker/tests/is_type_not_exist.out +++ b/vlib/v/checker/tests/is_type_not_exist.out @@ -1,11 +1,11 @@ -vlib/v/checker/tests/is_type_not_exist.v:4:2: error: cannot use type `any_int` as type `Integer` in argument 1 to `fn_with_sum_type_param` +vlib/v/checker/tests/is_type_not_exist.vv:4:2: error: cannot use type `any_int` as type `Integer` in argument 1 to `fn_with_sum_type_param` 2 | 3 | fn main() { 4 | fn_with_sum_type_param(1) | ~~~~~~~~~~~~~~~~~~~~~~~~~ 5 | } 6 | -vlib/v/checker/tests/is_type_not_exist.v:8:10: error: is: type `SomethingThatDontExist` does not exist +vlib/v/checker/tests/is_type_not_exist.vv:8:10: error: is: type `SomethingThatDontExist` does not exist 6 | 7 | fn fn_with_sum_type_param(i Integer) { 8 | if i is SomethingThatDontExist { diff --git a/vlib/v/checker/tests/left_shift_err.out b/vlib/v/checker/tests/left_shift_err.out index 68de1c8993..8ca85c221b 100644 --- a/vlib/v/checker/tests/left_shift_err.out +++ b/vlib/v/checker/tests/left_shift_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/left_shift_err.v:3:7: error: cannot append `string` to `[]int` +vlib/v/checker/tests/left_shift_err.vv:3:7: error: cannot append `string` to `[]int` 1 | fn main() { 2 | mut l := []int{} 3 | l << 'test' diff --git a/vlib/v/checker/tests/lock_already_locked.out b/vlib/v/checker/tests/lock_already_locked.out index b1e7286a7a..65e6853964 100644 --- a/vlib/v/checker/tests/lock_already_locked.out +++ b/vlib/v/checker/tests/lock_already_locked.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/lock_already_locked.v:11:9: error: `a` is already locked +vlib/v/checker/tests/lock_already_locked.vv:11:9: error: `a` is already locked 9 | } 10 | lock a { 11 | rlock a { diff --git a/vlib/v/checker/tests/lock_already_rlocked.out b/vlib/v/checker/tests/lock_already_rlocked.out index 9878bf23c1..dc93e364cf 100644 --- a/vlib/v/checker/tests/lock_already_rlocked.out +++ b/vlib/v/checker/tests/lock_already_rlocked.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/lock_already_rlocked.v:11:8: error: `a` is already read-locked +vlib/v/checker/tests/lock_already_rlocked.vv:11:8: error: `a` is already read-locked 9 | } 10 | rlock a { 11 | lock a { diff --git a/vlib/v/checker/tests/lock_const.out b/vlib/v/checker/tests/lock_const.out index 8d55659fa0..a203e4934e 100644 --- a/vlib/v/checker/tests/lock_const.out +++ b/vlib/v/checker/tests/lock_const.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/lock_const.v:7:8: error: `a` is not a variable and cannot be locked +vlib/v/checker/tests/lock_const.vv:7:8: error: `a` is not a variable and cannot be locked 5 | fn main() { 6 | mut c := 0 7 | rlock a { diff --git a/vlib/v/checker/tests/lock_needed.out b/vlib/v/checker/tests/lock_needed.out index dd7855d72d..e6422a6b6d 100644 --- a/vlib/v/checker/tests/lock_needed.out +++ b/vlib/v/checker/tests/lock_needed.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/lock_needed.v:10:2: error: `abc` is `shared` and needs explicit lock for `v.ast.SelectorExpr` +vlib/v/checker/tests/lock_needed.vv:10:2: error: `abc` is `shared` and needs explicit lock for `v.ast.SelectorExpr` 8 | x: 5 9 | } 10 | abc.x++ diff --git a/vlib/v/checker/tests/lock_nonshared.out b/vlib/v/checker/tests/lock_nonshared.out index 6b0aea8c04..7063dadc8a 100644 --- a/vlib/v/checker/tests/lock_nonshared.out +++ b/vlib/v/checker/tests/lock_nonshared.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/lock_nonshared.v:10:7: error: `a` must be declared `shared` to be locked +vlib/v/checker/tests/lock_nonshared.vv:10:7: error: `a` must be declared `shared` to be locked 8 | x: 5 9 | } 10 | lock a { diff --git a/vlib/v/checker/tests/main_args_err.out b/vlib/v/checker/tests/main_args_err.out index dc1ba5bbd9..ee5f426313 100644 --- a/vlib/v/checker/tests/main_args_err.out +++ b/vlib/v/checker/tests/main_args_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/main_args_err.v:1:1: error: function `main` cannot have arguments +vlib/v/checker/tests/main_args_err.vv:1:1: error: function `main` cannot have arguments 1 | fn main(a string) { | ~~~~~~~~~~~~~~~~~ 2 | println(a) diff --git a/vlib/v/checker/tests/main_called_err.out b/vlib/v/checker/tests/main_called_err.out index daba69c735..1f1e2539cf 100644 --- a/vlib/v/checker/tests/main_called_err.out +++ b/vlib/v/checker/tests/main_called_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/main_called_err.v:2:2: error: the `main` function cannot be called in the program +vlib/v/checker/tests/main_called_err.vv:2:2: error: the `main` function cannot be called in the program 1 | fn main() { 2 | main() | ~~~~~~ diff --git a/vlib/v/checker/tests/main_return_err.out b/vlib/v/checker/tests/main_return_err.out index 97ab39d2f5..c9ce43514f 100644 --- a/vlib/v/checker/tests/main_return_err.out +++ b/vlib/v/checker/tests/main_return_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/main_return_err.v:1:1: error: function `main` cannot return values +vlib/v/checker/tests/main_return_err.vv:1:1: error: function `main` cannot return values 1 | fn main() f64 { | ~~~~~~~~~~~~~ 2 | return 1.23 diff --git a/vlib/v/checker/tests/map_init_key_duplicate_err.out b/vlib/v/checker/tests/map_init_key_duplicate_err.out index 01b7bd570e..975a814458 100644 --- a/vlib/v/checker/tests/map_init_key_duplicate_err.out +++ b/vlib/v/checker/tests/map_init_key_duplicate_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/map_init_key_duplicate_err.v:5:3: error: duplicate key "foo" in map literal +vlib/v/checker/tests/map_init_key_duplicate_err.vv:5:3: error: duplicate key "foo" in map literal 3 | 'foo': 'bar' 4 | 'abc': 'abc' 5 | 'foo': 'bar' diff --git a/vlib/v/checker/tests/map_init_wrong_type.out b/vlib/v/checker/tests/map_init_wrong_type.out index 0e2c8022bd..9e8d833b32 100644 --- a/vlib/v/checker/tests/map_init_wrong_type.out +++ b/vlib/v/checker/tests/map_init_wrong_type.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/map_init_wrong_type.v:3:10: error: cannot assign `map[string]f64` to `a` of type `map[string]f32` +vlib/v/checker/tests/map_init_wrong_type.vv:3:10: error: cannot assign `map[string]f64` to `a` of type `map[string]f32` 1 | fn main() { 2 | mut a := map[string]f32{} 3 | a = { 'x': 12.3 } diff --git a/vlib/v/checker/tests/match_duplicate_branch.out b/vlib/v/checker/tests/match_duplicate_branch.out index 657def0ea2..8af6ae1bab 100644 --- a/vlib/v/checker/tests/match_duplicate_branch.out +++ b/vlib/v/checker/tests/match_duplicate_branch.out @@ -1,39 +1,39 @@ -vlib/v/checker/tests/match_duplicate_branch.v:15:3: error: match case `St1` is handled more than once +vlib/v/checker/tests/match_duplicate_branch.vv:15:3: error: match case `St1` is handled more than once 13 | match i { 14 | St1 { println('St1') } 15 | St1 { println('St1') } | ~~~~~ 16 | St2 { println('St2') } 17 | } -vlib/v/checker/tests/match_duplicate_branch.v:20:3: error: match case `St1` is handled more than once +vlib/v/checker/tests/match_duplicate_branch.vv:20:3: error: match case `St1` is handled more than once 18 | match i { 19 | St1 { println('St1') } 20 | St1 { println('St1') } | ~~~~~ 21 | else { println('else') } 22 | } -vlib/v/checker/tests/match_duplicate_branch.v:29:3: error: match case `green` is handled more than once +vlib/v/checker/tests/match_duplicate_branch.vv:29:3: error: match case `green` is handled more than once 27 | .red { println('red') } 28 | .green { println('green') } 29 | .green { println('green') } | ~~~~~~~~ 30 | .blue { println('blue') } 31 | } -vlib/v/checker/tests/match_duplicate_branch.v:34:3: error: match case `green` is handled more than once +vlib/v/checker/tests/match_duplicate_branch.vv:34:3: error: match case `green` is handled more than once 32 | match c { 33 | .red, .green { println('red green') } 34 | .green { println('green') } | ~~~~~~~~ 35 | else { println('else') } 36 | } -vlib/v/checker/tests/match_duplicate_branch.v:43:3: error: match case `2` is handled more than once +vlib/v/checker/tests/match_duplicate_branch.vv:43:3: error: match case `2` is handled more than once 41 | 1 { println('1') } 42 | 2 { println('2') } 43 | 2 { println('3') } | ~~~ 44 | else { println('else') } 45 | } -vlib/v/checker/tests/match_duplicate_branch.v:51:3: error: match case `3` is handled more than once +vlib/v/checker/tests/match_duplicate_branch.vv:51:3: error: match case `3` is handled more than once 49 | match i { 50 | 1...5 { println('1 to 5') } 51 | 3 { println('3') } diff --git a/vlib/v/checker/tests/match_else_last_expr.out b/vlib/v/checker/tests/match_else_last_expr.out index ed4f613fec..e2b2abd37f 100644 --- a/vlib/v/checker/tests/match_else_last_expr.out +++ b/vlib/v/checker/tests/match_else_last_expr.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/match_else_last_expr.v:4:3: error: `else` must be the last branch of `match` +vlib/v/checker/tests/match_else_last_expr.vv:4:3: error: `else` must be the last branch of `match` 2 | match 1 { 3 | 1 { println('1') } 4 | else { println('else') } diff --git a/vlib/v/checker/tests/match_expr_and_expected_type_error.out b/vlib/v/checker/tests/match_expr_and_expected_type_error.out index 923030f89b..63b5350c0c 100644 --- a/vlib/v/checker/tests/match_expr_and_expected_type_error.out +++ b/vlib/v/checker/tests/match_expr_and_expected_type_error.out @@ -1,10 +1,10 @@ -vlib/v/checker/tests/match_expr_and_expected_type_error.v:2:1: error: cannot use type `byte` as type `string` +vlib/v/checker/tests/match_expr_and_expected_type_error.vv:2:1: error: cannot use type `byte` as type `string` 1 | ch := `a` 2 | match ch { | ~~~~~~~~~~ 3 | 'a' {} 4 | else {} -vlib/v/checker/tests/match_expr_and_expected_type_error.v:8:1: error: cannot use type `int` as type `string` +vlib/v/checker/tests/match_expr_and_expected_type_error.vv:8:1: error: cannot use type `int` as type `string` 6 | 7 | char := 123 8 | match char { diff --git a/vlib/v/checker/tests/match_expr_else.out b/vlib/v/checker/tests/match_expr_else.out index 3db68544ef..64f5c9caa0 100644 --- a/vlib/v/checker/tests/match_expr_else.out +++ b/vlib/v/checker/tests/match_expr_else.out @@ -1,18 +1,18 @@ -vlib/v/checker/tests/match_expr_else.v:5:6: error: match must be exhaustive (add match branches for: `f64` or `else {}` at the end) +vlib/v/checker/tests/match_expr_else.vv:5:6: error: match must be exhaustive (add match branches for: `f64` or `else {}` at the end) 3 | fn main() { 4 | x := AA('test') 5 | _ = match x { | ~~~~~~~~~ 6 | int { 7 | 'int' -vlib/v/checker/tests/match_expr_else.v:23:3: error: match expression is exhaustive, `else` is unnecessary +vlib/v/checker/tests/match_expr_else.vv:23:3: error: match expression is exhaustive, `else` is unnecessary 21 | 'f64' 22 | } 23 | else { | ~~~~~~ 24 | 'else' 25 | } -vlib/v/checker/tests/match_expr_else.v:34:3: error: `else` must be the last branch of `match` +vlib/v/checker/tests/match_expr_else.vv:34:3: error: `else` must be the last branch of `match` 32 | 'string' 33 | } 34 | else { diff --git a/vlib/v/checker/tests/match_undefined_cond.out b/vlib/v/checker/tests/match_undefined_cond.out index ae8e40e0e7..fc6b23ec51 100644 --- a/vlib/v/checker/tests/match_undefined_cond.out +++ b/vlib/v/checker/tests/match_undefined_cond.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/match_undefined_cond.v:4:15: error: undefined ident: `Asd` +vlib/v/checker/tests/match_undefined_cond.vv:4:15: error: undefined ident: `Asd` 2 | 3 | fn main() { 4 | res := match Asd { diff --git a/vlib/v/checker/tests/method_wrong_arg_type.out b/vlib/v/checker/tests/method_wrong_arg_type.out index 5c6d991693..bd42ed3630 100644 --- a/vlib/v/checker/tests/method_wrong_arg_type.out +++ b/vlib/v/checker/tests/method_wrong_arg_type.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/method_wrong_arg_type.v:8:4: error: cannot use type `MyEnum` as type `string` in argument 1 to `Sss.info` +vlib/v/checker/tests/method_wrong_arg_type.vv:8:4: error: cannot use type `MyEnum` as type `string` in argument 1 to `Sss.info` 6 | e := MyEnum.x 7 | s := Sss{} 8 | s.info(e) diff --git a/vlib/v/checker/tests/minus_op_wrong_left_type_err_a.out b/vlib/v/checker/tests/minus_op_wrong_left_type_err_a.out index 8f5aa743f6..8775c76d86 100644 --- a/vlib/v/checker/tests/minus_op_wrong_left_type_err_a.out +++ b/vlib/v/checker/tests/minus_op_wrong_left_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/minus_op_wrong_left_type_err_a.v:3:13: error: mismatched types `Aaa` and `any_int` +vlib/v/checker/tests/minus_op_wrong_left_type_err_a.vv:3:13: error: mismatched types `Aaa` and `any_int` 1 | struct Aaa{} 2 | fn main() { 3 | println(Aaa{} - 10) diff --git a/vlib/v/checker/tests/minus_op_wrong_left_type_err_b.out b/vlib/v/checker/tests/minus_op_wrong_left_type_err_b.out index b7e7f6d095..cfe8b2c3d2 100644 --- a/vlib/v/checker/tests/minus_op_wrong_left_type_err_b.out +++ b/vlib/v/checker/tests/minus_op_wrong_left_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/minus_op_wrong_left_type_err_b.v:2:13: error: mismatched types `[]int` and `any_int` +vlib/v/checker/tests/minus_op_wrong_left_type_err_b.vv:2:13: error: mismatched types `[]int` and `any_int` 1 | fn main() { 2 | println([1,2,3] - 10) | ~~~~~~~ diff --git a/vlib/v/checker/tests/minus_op_wrong_left_type_err_c.out b/vlib/v/checker/tests/minus_op_wrong_left_type_err_c.out index f676a63f24..5dce5582b3 100644 --- a/vlib/v/checker/tests/minus_op_wrong_left_type_err_c.out +++ b/vlib/v/checker/tests/minus_op_wrong_left_type_err_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/minus_op_wrong_left_type_err_c.v:3:13: error: mismatched types `map_string_int` and `any_int` +vlib/v/checker/tests/minus_op_wrong_left_type_err_c.vv:3:13: error: mismatched types `map_string_int` and `any_int` 1 | fn main() { 2 | a := map[string]int 3 | println(a - 10) diff --git a/vlib/v/checker/tests/minus_op_wrong_right_type_err_a.out b/vlib/v/checker/tests/minus_op_wrong_right_type_err_a.out index 2f30a9c2b3..48f8e1d896 100644 --- a/vlib/v/checker/tests/minus_op_wrong_right_type_err_a.out +++ b/vlib/v/checker/tests/minus_op_wrong_right_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/minus_op_wrong_right_type_err_a.v:3:18: error: mismatched types `any_int` and `Aaa` +vlib/v/checker/tests/minus_op_wrong_right_type_err_a.vv:3:18: error: mismatched types `any_int` and `Aaa` 1 | struct Aaa{} 2 | fn main() { 3 | println(10 - Aaa{}) diff --git a/vlib/v/checker/tests/minus_op_wrong_right_type_err_b.out b/vlib/v/checker/tests/minus_op_wrong_right_type_err_b.out index b5edf14805..35322153b6 100644 --- a/vlib/v/checker/tests/minus_op_wrong_right_type_err_b.out +++ b/vlib/v/checker/tests/minus_op_wrong_right_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/minus_op_wrong_right_type_err_b.v:2:18: error: mismatched types `any_int` and `[]int` +vlib/v/checker/tests/minus_op_wrong_right_type_err_b.vv:2:18: error: mismatched types `any_int` and `[]int` 1 | fn main() { 2 | println(10 - [1,2,3]) | ~~~~~~~ diff --git a/vlib/v/checker/tests/minus_op_wrong_right_type_err_c.out b/vlib/v/checker/tests/minus_op_wrong_right_type_err_c.out index e3245d5c70..a1e0660a29 100644 --- a/vlib/v/checker/tests/minus_op_wrong_right_type_err_c.out +++ b/vlib/v/checker/tests/minus_op_wrong_right_type_err_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/minus_op_wrong_right_type_err_c.v:3:18: error: mismatched types `any_int` and `map_string_int` +vlib/v/checker/tests/minus_op_wrong_right_type_err_c.vv:3:18: error: mismatched types `any_int` and `map_string_int` 1 | fn main() { 2 | a := map[string]int 3 | println(10 - a) diff --git a/vlib/v/checker/tests/mod_op_wrong_left_type_err_a.out b/vlib/v/checker/tests/mod_op_wrong_left_type_err_a.out index 207bb93414..7e4094aa22 100644 --- a/vlib/v/checker/tests/mod_op_wrong_left_type_err_a.out +++ b/vlib/v/checker/tests/mod_op_wrong_left_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mod_op_wrong_left_type_err_a.v:2:10: error: float modulo not allowed, use math.fmod() instead +vlib/v/checker/tests/mod_op_wrong_left_type_err_a.vv:2:10: error: float modulo not allowed, use math.fmod() instead 1 | fn main() { 2 | println(0.5 % 1) | ~~~ diff --git a/vlib/v/checker/tests/mod_op_wrong_left_type_err_b.out b/vlib/v/checker/tests/mod_op_wrong_left_type_err_b.out index 8a672ba350..0525179b71 100644 --- a/vlib/v/checker/tests/mod_op_wrong_left_type_err_b.out +++ b/vlib/v/checker/tests/mod_op_wrong_left_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mod_op_wrong_left_type_err_b.v:2:10: error: mismatched types `[]int` and `any_int` +vlib/v/checker/tests/mod_op_wrong_left_type_err_b.vv:2:10: error: mismatched types `[]int` and `any_int` 1 | fn main() { 2 | println([1,2,3] % 1) | ~~~~~~~ diff --git a/vlib/v/checker/tests/mod_op_wrong_left_type_err_c.out b/vlib/v/checker/tests/mod_op_wrong_left_type_err_c.out index c8343b9a07..1565cb5407 100644 --- a/vlib/v/checker/tests/mod_op_wrong_left_type_err_c.out +++ b/vlib/v/checker/tests/mod_op_wrong_left_type_err_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mod_op_wrong_left_type_err_c.v:4:10: error: mismatched types `Aaa` and `any_int` +vlib/v/checker/tests/mod_op_wrong_left_type_err_c.vv:4:10: error: mismatched types `Aaa` and `any_int` 2 | fn main() { 3 | a := Aaa{} 4 | println(a % 1) diff --git a/vlib/v/checker/tests/mod_op_wrong_left_type_err_d.out b/vlib/v/checker/tests/mod_op_wrong_left_type_err_d.out index 89081346f6..67cf833a88 100644 --- a/vlib/v/checker/tests/mod_op_wrong_left_type_err_d.out +++ b/vlib/v/checker/tests/mod_op_wrong_left_type_err_d.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mod_op_wrong_left_type_err_d.v:3:10: error: mismatched types `map_string_int` and `any_int` +vlib/v/checker/tests/mod_op_wrong_left_type_err_d.vv:3:10: error: mismatched types `map_string_int` and `any_int` 1 | fn main() { 2 | a := map[string]int 3 | println(a % 1) diff --git a/vlib/v/checker/tests/mod_op_wrong_right_type_err_a.out b/vlib/v/checker/tests/mod_op_wrong_right_type_err_a.out index 82b6bb1e2d..9b4b8db04f 100644 --- a/vlib/v/checker/tests/mod_op_wrong_right_type_err_a.out +++ b/vlib/v/checker/tests/mod_op_wrong_right_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mod_op_wrong_right_type_err_a.v:2:14: error: float modulo not allowed, use math.fmod() instead +vlib/v/checker/tests/mod_op_wrong_right_type_err_a.vv:2:14: error: float modulo not allowed, use math.fmod() instead 1 | fn main() { 2 | println(1 % 0.5) | ~~~ diff --git a/vlib/v/checker/tests/mod_op_wrong_right_type_err_b.out b/vlib/v/checker/tests/mod_op_wrong_right_type_err_b.out index 523bb8f2b7..b37b160762 100644 --- a/vlib/v/checker/tests/mod_op_wrong_right_type_err_b.out +++ b/vlib/v/checker/tests/mod_op_wrong_right_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mod_op_wrong_right_type_err_b.v:2:14: error: mismatched types `any_int` and `[]int` +vlib/v/checker/tests/mod_op_wrong_right_type_err_b.vv:2:14: error: mismatched types `any_int` and `[]int` 1 | fn main() { 2 | println(1 % [1,2,3]) | ~~~~~~~ diff --git a/vlib/v/checker/tests/mod_op_wrong_right_type_err_c.out b/vlib/v/checker/tests/mod_op_wrong_right_type_err_c.out index aa275ffb7b..58e96b9361 100644 --- a/vlib/v/checker/tests/mod_op_wrong_right_type_err_c.out +++ b/vlib/v/checker/tests/mod_op_wrong_right_type_err_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mod_op_wrong_right_type_err_c.v:4:14: error: mismatched types `any_int` and `Aaa` +vlib/v/checker/tests/mod_op_wrong_right_type_err_c.vv:4:14: error: mismatched types `any_int` and `Aaa` 2 | fn main() { 3 | a := Aaa{} 4 | println(1 % a) diff --git a/vlib/v/checker/tests/mod_op_wrong_right_type_err_d.out b/vlib/v/checker/tests/mod_op_wrong_right_type_err_d.out index 592f608e99..5ee1ab3aeb 100644 --- a/vlib/v/checker/tests/mod_op_wrong_right_type_err_d.out +++ b/vlib/v/checker/tests/mod_op_wrong_right_type_err_d.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mod_op_wrong_right_type_err_d.v:3:14: error: mismatched types `any_int` and `map_string_int` +vlib/v/checker/tests/mod_op_wrong_right_type_err_d.vv:3:14: error: mismatched types `any_int` and `map_string_int` 1 | fn main() { 2 | a := map[string]int 3 | println(1 % a) diff --git a/vlib/v/checker/tests/module_multiple_names_err.out b/vlib/v/checker/tests/module_multiple_names_err.out index 539d6c9547..5c195ef290 100644 --- a/vlib/v/checker/tests/module_multiple_names_err.out +++ b/vlib/v/checker/tests/module_multiple_names_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/module_multiple_names_err.v:1:13: error: `module x` can only declare one module +vlib/v/checker/tests/module_multiple_names_err.vv:1:13: error: `module x` can only declare one module 1 | module main os | ~~ 2 | fn main() { diff --git a/vlib/v/checker/tests/module_not_at_same_line_err.out b/vlib/v/checker/tests/module_not_at_same_line_err.out index 1f9b13e076..6efd5f2693 100644 --- a/vlib/v/checker/tests/module_not_at_same_line_err.out +++ b/vlib/v/checker/tests/module_not_at_same_line_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/module_not_at_same_line_err.v:2:1: error: `module` and `main` must be at same line +vlib/v/checker/tests/module_not_at_same_line_err.vv:2:1: error: `module` and `main` must be at same line 1 | module 2 | main | ~~~~ diff --git a/vlib/v/checker/tests/module_syntax_err.out b/vlib/v/checker/tests/module_syntax_err.out index 071b1b030a..4f3dcb4d11 100644 --- a/vlib/v/checker/tests/module_syntax_err.out +++ b/vlib/v/checker/tests/module_syntax_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/module_syntax_err.v:1:12: error: `module x` syntax error +vlib/v/checker/tests/module_syntax_err.vv:1:12: error: `module x` syntax error 1 | module main.os | ^ 2 | fn main() { diff --git a/vlib/v/checker/tests/mul_op_wrong_left_type_err_a.out b/vlib/v/checker/tests/mul_op_wrong_left_type_err_a.out index 5dc293a4ba..e39f1dd7ea 100644 --- a/vlib/v/checker/tests/mul_op_wrong_left_type_err_a.out +++ b/vlib/v/checker/tests/mul_op_wrong_left_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mul_op_wrong_left_type_err_a.v:3:13: error: mismatched types `Aaa` and `any_int` +vlib/v/checker/tests/mul_op_wrong_left_type_err_a.vv:3:13: error: mismatched types `Aaa` and `any_int` 1 | struct Aaa{} 2 | fn main() { 3 | println(Aaa{} * 10) diff --git a/vlib/v/checker/tests/mul_op_wrong_left_type_err_b.out b/vlib/v/checker/tests/mul_op_wrong_left_type_err_b.out index c53f8857b9..62a98b6dde 100644 --- a/vlib/v/checker/tests/mul_op_wrong_left_type_err_b.out +++ b/vlib/v/checker/tests/mul_op_wrong_left_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mul_op_wrong_left_type_err_b.v:2:13: error: mismatched types `[]int` and `any_int` +vlib/v/checker/tests/mul_op_wrong_left_type_err_b.vv:2:13: error: mismatched types `[]int` and `any_int` 1 | fn main() { 2 | println([1,2,3] * 10) | ~~~~~~~ diff --git a/vlib/v/checker/tests/mul_op_wrong_left_type_err_c.out b/vlib/v/checker/tests/mul_op_wrong_left_type_err_c.out index 6d4b727280..5aada09ced 100644 --- a/vlib/v/checker/tests/mul_op_wrong_left_type_err_c.out +++ b/vlib/v/checker/tests/mul_op_wrong_left_type_err_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mul_op_wrong_left_type_err_c.v:3:13: error: mismatched types `map_string_int` and `any_int` +vlib/v/checker/tests/mul_op_wrong_left_type_err_c.vv:3:13: error: mismatched types `map_string_int` and `any_int` 1 | fn main() { 2 | a := map[string]int 3 | println(a * 10) diff --git a/vlib/v/checker/tests/mul_op_wrong_left_type_err_d.out b/vlib/v/checker/tests/mul_op_wrong_left_type_err_d.out index 26303228ce..062ecdf41f 100644 --- a/vlib/v/checker/tests/mul_op_wrong_left_type_err_d.out +++ b/vlib/v/checker/tests/mul_op_wrong_left_type_err_d.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mul_op_wrong_left_type_err_d.v:6:11: error: infix expr: cannot use `any_float` (right expression) as `math.complex.Complex` +vlib/v/checker/tests/mul_op_wrong_left_type_err_d.vv:6:11: error: infix expr: cannot use `any_float` (right expression) as `math.complex.Complex` 4 | fn main() { 5 | c1 := cmplx.complex(1,-2) 6 | c2 := c1 * 2.0 diff --git a/vlib/v/checker/tests/mul_op_wrong_right_type_err_a.out b/vlib/v/checker/tests/mul_op_wrong_right_type_err_a.out index 6b1bfdfcde..cc17c524e6 100644 --- a/vlib/v/checker/tests/mul_op_wrong_right_type_err_a.out +++ b/vlib/v/checker/tests/mul_op_wrong_right_type_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mul_op_wrong_right_type_err_a.v:3:18: error: mismatched types `any_int` and `Aaa` +vlib/v/checker/tests/mul_op_wrong_right_type_err_a.vv:3:18: error: mismatched types `any_int` and `Aaa` 1 | struct Aaa{} 2 | fn main() { 3 | println(10 * Aaa{}) diff --git a/vlib/v/checker/tests/mul_op_wrong_right_type_err_b.out b/vlib/v/checker/tests/mul_op_wrong_right_type_err_b.out index c504ca8dcf..495fd5b1f7 100644 --- a/vlib/v/checker/tests/mul_op_wrong_right_type_err_b.out +++ b/vlib/v/checker/tests/mul_op_wrong_right_type_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mul_op_wrong_right_type_err_b.v:2:18: error: mismatched types `any_int` and `[]int` +vlib/v/checker/tests/mul_op_wrong_right_type_err_b.vv:2:18: error: mismatched types `any_int` and `[]int` 1 | fn main() { 2 | println(10 * [1,2,3]) | ~~~~~~~ diff --git a/vlib/v/checker/tests/mul_op_wrong_right_type_err_c.out b/vlib/v/checker/tests/mul_op_wrong_right_type_err_c.out index b6004066b5..4854b51762 100644 --- a/vlib/v/checker/tests/mul_op_wrong_right_type_err_c.out +++ b/vlib/v/checker/tests/mul_op_wrong_right_type_err_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mul_op_wrong_right_type_err_c.v:3:18: error: mismatched types `any_int` and `map_string_int` +vlib/v/checker/tests/mul_op_wrong_right_type_err_c.vv:3:18: error: mismatched types `any_int` and `map_string_int` 1 | fn main() { 2 | a := map[string]int 3 | println(10 * a) diff --git a/vlib/v/checker/tests/mul_op_wrong_right_type_err_d.out b/vlib/v/checker/tests/mul_op_wrong_right_type_err_d.out index e5437495ab..1c227660e9 100644 --- a/vlib/v/checker/tests/mul_op_wrong_right_type_err_d.out +++ b/vlib/v/checker/tests/mul_op_wrong_right_type_err_d.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mul_op_wrong_right_type_err_d.v:6:12: error: infix expr: cannot use `math.complex.Complex` (right expression) as `any_float` +vlib/v/checker/tests/mul_op_wrong_right_type_err_d.vv:6:12: error: infix expr: cannot use `math.complex.Complex` (right expression) as `any_float` 4 | fn main() { 5 | c1 := cmplx.complex(1,-2) 6 | c2 := 2.0 * c1 diff --git a/vlib/v/checker/tests/multi_const_field_name_duplicate_err.out b/vlib/v/checker/tests/multi_const_field_name_duplicate_err.out index ef26452ed9..731b9f7381 100644 --- a/vlib/v/checker/tests/multi_const_field_name_duplicate_err.out +++ b/vlib/v/checker/tests/multi_const_field_name_duplicate_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/multi_const_field_name_duplicate_err.v:2:8: error: duplicate const `aaa` +vlib/v/checker/tests/multi_const_field_name_duplicate_err.vv:2:8: error: duplicate const `aaa` 1 | const (aaa = 1) 2 | const (aaa = 2) | ~~~ diff --git a/vlib/v/checker/tests/multi_names_err.out b/vlib/v/checker/tests/multi_names_err.out index cb9215fcaa..a022208f11 100644 --- a/vlib/v/checker/tests/multi_names_err.out +++ b/vlib/v/checker/tests/multi_names_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/multi_names_err.v:2:4: error: unexpected name `a` +vlib/v/checker/tests/multi_names_err.vv:2:4: error: unexpected name `a` 1 | fn main() { 2 | a a a a := 1 | ^ diff --git a/vlib/v/checker/tests/mut_args_warning.out b/vlib/v/checker/tests/mut_args_warning.out index 64f4802893..726f4b8de7 100644 --- a/vlib/v/checker/tests/mut_args_warning.out +++ b/vlib/v/checker/tests/mut_args_warning.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mut_args_warning.v:1:8: warning: use `mut f Foo` instead of `f mut Foo` +vlib/v/checker/tests/mut_args_warning.vv:1:8: warning: use `mut f Foo` instead of `f mut Foo` 1 | fn f(x mut []int) { x[0] = 1 } | ~~~ 2 | fn main() { diff --git a/vlib/v/checker/tests/mut_int.out b/vlib/v/checker/tests/mut_int.out index ce1abc705d..852762c3ea 100644 --- a/vlib/v/checker/tests/mut_int.out +++ b/vlib/v/checker/tests/mut_int.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mut_int.v:1:14: error: mutable arguments are only allowed for arrays, maps, and structs +vlib/v/checker/tests/mut_int.vv:1:14: error: mutable arguments are only allowed for arrays, maps, and structs return values instead: `fn foo(mut n int) {` => `fn foo(n int) int {` 1 | fn foo(mut x int) { | ~~~ diff --git a/vlib/v/checker/tests/mut_receiver_warning.out b/vlib/v/checker/tests/mut_receiver_warning.out index 533a3465a1..90aaf0eb80 100644 --- a/vlib/v/checker/tests/mut_receiver_warning.out +++ b/vlib/v/checker/tests/mut_receiver_warning.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/mut_receiver_warning.v:5:7: warning: use `(mut f Foo)` instead of `(f mut Foo)` +vlib/v/checker/tests/mut_receiver_warning.vv:5:7: warning: use `(mut f Foo)` instead of `(f mut Foo)` 3 | name string 4 | } 5 | fn (f mut Foo) info() { diff --git a/vlib/v/checker/tests/nested_aliases.out b/vlib/v/checker/tests/nested_aliases.out index de0853b916..1d0805084a 100644 --- a/vlib/v/checker/tests/nested_aliases.out +++ b/vlib/v/checker/tests/nested_aliases.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/nested_aliases.v:2:1: error: type `MyInt` is an alias, use the original alias type `int` instead +vlib/v/checker/tests/nested_aliases.vv:2:1: error: type `MyInt` is an alias, use the original alias type `int` instead 1 | type MyInt = int 2 | type MyMyInt = MyInt | ~~~~~~~~~~~~ diff --git a/vlib/v/checker/tests/no_interface_instantiation_a.out b/vlib/v/checker/tests/no_interface_instantiation_a.out index 0f553ee644..e01c3a7a21 100644 --- a/vlib/v/checker/tests/no_interface_instantiation_a.out +++ b/vlib/v/checker/tests/no_interface_instantiation_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/no_interface_instantiation_a.v:4:9: error: cannot instantiate interface `Speaker` +vlib/v/checker/tests/no_interface_instantiation_a.vv:4:9: error: cannot instantiate interface `Speaker` 2 | 3 | fn main() { 4 | _ = Speaker{} diff --git a/vlib/v/checker/tests/no_interface_instantiation_b.out b/vlib/v/checker/tests/no_interface_instantiation_b.out index 2755dc08dc..380417c64f 100644 --- a/vlib/v/checker/tests/no_interface_instantiation_b.out +++ b/vlib/v/checker/tests/no_interface_instantiation_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/no_interface_instantiation_b.v:6:12: error: cannot instantiate interface `Speaker` +vlib/v/checker/tests/no_interface_instantiation_b.vv:6:12: error: cannot instantiate interface `Speaker` 4 | 5 | fn main() { 6 | my_fn({}) diff --git a/vlib/v/checker/tests/no_interface_instantiation_c.out b/vlib/v/checker/tests/no_interface_instantiation_c.out index 8518a22880..11f0568c9c 100644 --- a/vlib/v/checker/tests/no_interface_instantiation_c.out +++ b/vlib/v/checker/tests/no_interface_instantiation_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/no_interface_instantiation_c.v:9:9: error: cannot instantiate interface `Speaker` +vlib/v/checker/tests/no_interface_instantiation_c.vv:9:9: error: cannot instantiate interface `Speaker` 7 | fn main() { 8 | my_fn( 9 | speak: 1 diff --git a/vlib/v/checker/tests/no_interface_receiver.out b/vlib/v/checker/tests/no_interface_receiver.out index e4665b9937..f738d96e51 100644 --- a/vlib/v/checker/tests/no_interface_receiver.out +++ b/vlib/v/checker/tests/no_interface_receiver.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/no_interface_receiver.v:5:5: error: interfaces cannot be used as method receiver +vlib/v/checker/tests/no_interface_receiver.vv:5:5: error: interfaces cannot be used as method receiver 3 | } 4 | 5 | fn (a Animal) str() {} diff --git a/vlib/v/checker/tests/no_interface_receiver_duplicate_a.out b/vlib/v/checker/tests/no_interface_receiver_duplicate_a.out index cac199162e..e96e3e83b2 100644 --- a/vlib/v/checker/tests/no_interface_receiver_duplicate_a.out +++ b/vlib/v/checker/tests/no_interface_receiver_duplicate_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/no_interface_receiver_duplicate_a.v:5:5: error: interfaces cannot be used as method receiver +vlib/v/checker/tests/no_interface_receiver_duplicate_a.vv:5:5: error: interfaces cannot be used as method receiver 3 | } 4 | 5 | fn (a Abc) fun() { diff --git a/vlib/v/checker/tests/no_interface_receiver_duplicate_b.out b/vlib/v/checker/tests/no_interface_receiver_duplicate_b.out index 09a8738240..8e1f155873 100644 --- a/vlib/v/checker/tests/no_interface_receiver_duplicate_b.out +++ b/vlib/v/checker/tests/no_interface_receiver_duplicate_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/no_interface_receiver_duplicate_b.v:1:5: error: interfaces cannot be used as method receiver +vlib/v/checker/tests/no_interface_receiver_duplicate_b.vv:1:5: error: interfaces cannot be used as method receiver 1 | fn (a Abc) fun() { | ~~~~~ 2 | } diff --git a/vlib/v/checker/tests/no_interface_str.out b/vlib/v/checker/tests/no_interface_str.out index 871c9a8c7d..37b33f2fe1 100644 --- a/vlib/v/checker/tests/no_interface_str.out +++ b/vlib/v/checker/tests/no_interface_str.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/no_interface_str.v:18:12: error: interface `Animal` does not have a .str() method. Use typeof() instead +vlib/v/checker/tests/no_interface_str.vv:18:12: error: interface `Animal` does not have a .str() method. Use typeof() instead 16 | fn moin() { 17 | a := get_animal() 18 | println(a.str()) diff --git a/vlib/v/checker/tests/no_main_mod.out b/vlib/v/checker/tests/no_main_mod.out index 211dbd36f4..549575d862 100644 --- a/vlib/v/checker/tests/no_main_mod.out +++ b/vlib/v/checker/tests/no_main_mod.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/no_main_mod.v:1:1: error: project must include a `main` module or be a shared library (compile with `v -shared`) +vlib/v/checker/tests/no_main_mod.vv:1:1: error: project must include a `main` module or be a shared library (compile with `v -shared`) 1 | module a | ^ diff --git a/vlib/v/checker/tests/no_main_println_err.out b/vlib/v/checker/tests/no_main_println_err.out index 7dbe9abae8..495fd57634 100644 --- a/vlib/v/checker/tests/no_main_println_err.out +++ b/vlib/v/checker/tests/no_main_println_err.out @@ -1,3 +1,3 @@ -vlib/v/checker/tests/no_main_println_err.v:1:5: error: too few arguments in call to `println` (0 instead of 1) +vlib/v/checker/tests/no_main_println_err.vv:1:5: error: too few arguments in call to `println` (0 instead of 1) 1 | println() | ~~~~~~~~~ diff --git a/vlib/v/checker/tests/no_pub_in_main.out b/vlib/v/checker/tests/no_pub_in_main.out index f1b47e04fd..e1da08048e 100644 --- a/vlib/v/checker/tests/no_pub_in_main.out +++ b/vlib/v/checker/tests/no_pub_in_main.out @@ -1,46 +1,46 @@ -vlib/v/checker/tests/no_pub_in_main.v:3:1: error: type alias `Integer` in module main cannot be declared public +vlib/v/checker/tests/no_pub_in_main.vv:3:1: error: type alias `Integer` in module main cannot be declared public 1 | module main 2 | 3 | pub type Integer = int | ~~~~~~~~~~~~~~~~ 4 | 5 | pub type Float = f32 | f64 -vlib/v/checker/tests/no_pub_in_main.v:5:1: error: sum type `Float` in module main cannot be declared public +vlib/v/checker/tests/no_pub_in_main.vv:5:1: error: sum type `Float` in module main cannot be declared public 3 | pub type Integer = int 4 | 5 | pub type Float = f32 | f64 | ~~~~~~~~~~~~~~ 6 | 7 | // Buggy ATM -vlib/v/checker/tests/no_pub_in_main.v:10:1: error: enum `Color` in module main cannot be declared public +vlib/v/checker/tests/no_pub_in_main.vv:10:1: error: enum `Color` in module main cannot be declared public 8 | // pub type Fn = fn () int 9 | 10 | pub enum Color { | ~~~~~~~~~~~~~~ 11 | red 12 | green -vlib/v/checker/tests/no_pub_in_main.v:16:1: error: const in module main cannot be declared public +vlib/v/checker/tests/no_pub_in_main.vv:16:1: error: const in module main cannot be declared public 14 | } 15 | 16 | pub const ( | ~~~~~~~~~ 17 | w = 'world' 18 | ) -vlib/v/checker/tests/no_pub_in_main.v:20:1: error: function `my_fn` in module main cannot be declared public +vlib/v/checker/tests/no_pub_in_main.vv:20:1: error: function `my_fn` in module main cannot be declared public 18 | ) 19 | 20 | pub fn my_fn() int { | ~~~~~~~~~~~~~~~~~~ 21 | return 1 22 | } -vlib/v/checker/tests/no_pub_in_main.v:24:1: error: function `main` cannot be declared public +vlib/v/checker/tests/no_pub_in_main.vv:24:1: error: function `main` cannot be declared public 22 | } 23 | 24 | pub fn main() { | ~~~~~~~~~~~~~ 25 | println('main') 26 | } -vlib/v/checker/tests/no_pub_in_main.v:28:1: error: struct `MyStruct` in module main cannot be declared public +vlib/v/checker/tests/no_pub_in_main.vv:28:1: error: struct `MyStruct` in module main cannot be declared public 26 | } 27 | 28 | pub struct MyStruct { diff --git a/vlib/v/checker/tests/non_matching_functional_args.out b/vlib/v/checker/tests/non_matching_functional_args.out index 146cf0145f..b30c3fba0e 100644 --- a/vlib/v/checker/tests/non_matching_functional_args.out +++ b/vlib/v/checker/tests/non_matching_functional_args.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/non_matching_functional_args.v:27:2: error: cannot use anonymous function as function type `MyFn` in argument 1 to `sum` +vlib/v/checker/tests/non_matching_functional_args.vv:27:2: error: cannot use anonymous function as function type `MyFn` in argument 1 to `sum` 25 | 26 | fn main() { 27 | sum(fn (mut t Table) { @@ -6,7 +6,7 @@ vlib/v/checker/tests/non_matching_functional_args.v:27:2: error: cannot use anon 28 | t.rename() 29 | println(t.name) details: `main.MyFn`'s expected fn argument: `zzzz` is NOT a pointer, but the passed fn argument: `t` is a pointer -vlib/v/checker/tests/non_matching_functional_args.v:31:2: error: cannot use fn `xxx` as function type `MyFn` in argument 1 to `sum` +vlib/v/checker/tests/non_matching_functional_args.vv:31:2: error: cannot use fn `xxx` as function type `MyFn` in argument 1 to `sum` 29 | println(t.name) 30 | }) 31 | sum(xxx) diff --git a/vlib/v/checker/tests/oct_lit_without_digit_err.out b/vlib/v/checker/tests/oct_lit_without_digit_err.out index b25a6c7335..29eac2df4a 100644 --- a/vlib/v/checker/tests/oct_lit_without_digit_err.out +++ b/vlib/v/checker/tests/oct_lit_without_digit_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/oct_lit_without_digit_err.v:2:14: error: number part of this octal is not provided +vlib/v/checker/tests/oct_lit_without_digit_err.vv:2:14: error: number part of this octal is not provided 1 | fn main() { 2 | println(0o) | ^ diff --git a/vlib/v/checker/tests/oct_lit_wrong_digit_err.out b/vlib/v/checker/tests/oct_lit_wrong_digit_err.out index dc791d1ea4..0dbccf964a 100644 --- a/vlib/v/checker/tests/oct_lit_wrong_digit_err.out +++ b/vlib/v/checker/tests/oct_lit_wrong_digit_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/oct_lit_wrong_digit_err.v:2:18: error: this octal number has unsuitable digit `8` +vlib/v/checker/tests/oct_lit_wrong_digit_err.vv:2:18: error: this octal number has unsuitable digit `8` 1 | fn main() { 2 | println(0o1118) | ^ diff --git a/vlib/v/checker/tests/optional_type_call_err.out b/vlib/v/checker/tests/optional_type_call_err.out index 43c0352375..655076574d 100644 --- a/vlib/v/checker/tests/optional_type_call_err.out +++ b/vlib/v/checker/tests/optional_type_call_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/optional_type_call_err.v:4:5: error: optional type cannot be called directly +vlib/v/checker/tests/optional_type_call_err.vv:4:5: error: optional type cannot be called directly 2 | 3 | fn main() { 4 | os.ls('.').filter(it.ends_with('.v')) or { return } diff --git a/vlib/v/checker/tests/plus_or_minus_assign_one_err.out b/vlib/v/checker/tests/plus_or_minus_assign_one_err.out index 7c9002cf11..69d38a3391 100644 --- a/vlib/v/checker/tests/plus_or_minus_assign_one_err.out +++ b/vlib/v/checker/tests/plus_or_minus_assign_one_err.out @@ -1,11 +1,11 @@ -vlib/v/checker/tests/plus_or_minus_assign_one_err.v:3:6: error: use `++` instead of `+= 1` +vlib/v/checker/tests/plus_or_minus_assign_one_err.vv:3:6: error: use `++` instead of `+= 1` 1 | fn main() { 2 | mut foo := 10 3 | foo += 1 | ~~ 4 | foo -= 1 5 | } -vlib/v/checker/tests/plus_or_minus_assign_one_err.v:4:6: error: use `--` instead of `-= 1` +vlib/v/checker/tests/plus_or_minus_assign_one_err.vv:4:6: error: use `--` instead of `-= 1` 2 | mut foo := 10 3 | foo += 1 4 | foo -= 1 diff --git a/vlib/v/checker/tests/prefix_err.out b/vlib/v/checker/tests/prefix_err.out index 95dfbb4dfd..9763f32e51 100644 --- a/vlib/v/checker/tests/prefix_err.out +++ b/vlib/v/checker/tests/prefix_err.out @@ -1,23 +1,23 @@ -vlib/v/checker/tests/prefix_err.v:2:5: error: prefix operator `*` not defined for type `int` +vlib/v/checker/tests/prefix_err.vv:2:5: error: prefix operator `*` not defined for type `int` 1 | a := 1 2 | _ = *a | ^ 3 | a <- 4 4 | -vlib/v/checker/tests/prefix_err.v:3:1: error: cannot push on non-channel `int` +vlib/v/checker/tests/prefix_err.vv:3:1: error: cannot push on non-channel `int` 1 | a := 1 2 | _ = *a 3 | a <- 4 | ^ 4 | 5 | _ = ~true -vlib/v/checker/tests/prefix_err.v:5:5: error: operator ~ only defined on int types +vlib/v/checker/tests/prefix_err.vv:5:5: error: operator ~ only defined on int types 3 | a <- 4 4 | 5 | _ = ~true | ^ 6 | _ = !4 -vlib/v/checker/tests/prefix_err.v:6:5: error: ! operator can only be used with bool types +vlib/v/checker/tests/prefix_err.vv:6:5: error: ! operator can only be used with bool types 4 | 5 | _ = ~true 6 | _ = !4 diff --git a/vlib/v/checker/tests/print_optional_type_err.out b/vlib/v/checker/tests/print_optional_type_err.out index 38cbf86350..26a9f68c40 100644 --- a/vlib/v/checker/tests/print_optional_type_err.out +++ b/vlib/v/checker/tests/print_optional_type_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/print_optional_type_err.v:3:13: error: cannot print optional type +vlib/v/checker/tests/print_optional_type_err.vv:3:13: error: cannot print optional type 1 | import os 2 | fn main() { 3 | println(os.ls('.')) diff --git a/vlib/v/checker/tests/reference_field_must_be_initialized.out b/vlib/v/checker/tests/reference_field_must_be_initialized.out index 5811dc04d3..846e5b75f5 100644 --- a/vlib/v/checker/tests/reference_field_must_be_initialized.out +++ b/vlib/v/checker/tests/reference_field_must_be_initialized.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/reference_field_must_be_initialized.v:8:7: error: reference field `Node.next` must be initialized +vlib/v/checker/tests/reference_field_must_be_initialized.vv:8:7: error: reference field `Node.next` must be initialized 6 | 7 | fn main(){ 8 | n := Node{ data: 123 } diff --git a/vlib/v/checker/tests/return_duplicate_with_none_err_a.out b/vlib/v/checker/tests/return_duplicate_with_none_err_a.out index 5907a63114..ea41c8b236 100644 --- a/vlib/v/checker/tests/return_duplicate_with_none_err_a.out +++ b/vlib/v/checker/tests/return_duplicate_with_none_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/return_duplicate_with_none_err_a.v:3:2: error: unreachable code +vlib/v/checker/tests/return_duplicate_with_none_err_a.vv:3:2: error: unreachable code 1 | fn f() ?bool { 2 | return true 3 | return none diff --git a/vlib/v/checker/tests/return_duplicate_with_none_err_b.out b/vlib/v/checker/tests/return_duplicate_with_none_err_b.out index c3f15574c9..7bc37bb938 100644 --- a/vlib/v/checker/tests/return_duplicate_with_none_err_b.out +++ b/vlib/v/checker/tests/return_duplicate_with_none_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/return_duplicate_with_none_err_b.v:3:2: error: unreachable code +vlib/v/checker/tests/return_duplicate_with_none_err_b.vv:3:2: error: unreachable code 1 | fn f() ?bool { 2 | return none 3 | return true diff --git a/vlib/v/checker/tests/return_missing_comp_if.out b/vlib/v/checker/tests/return_missing_comp_if.out index e1005d0850..f8315acece 100644 --- a/vlib/v/checker/tests/return_missing_comp_if.out +++ b/vlib/v/checker/tests/return_missing_comp_if.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/return_missing_comp_if.v:3:1: error: missing return at end of function `foo` +vlib/v/checker/tests/return_missing_comp_if.vv:3:1: error: missing return at end of function `foo` 1 | fn main() {} 2 | 3 | fn foo() string { diff --git a/vlib/v/checker/tests/return_missing_comp_if_nested.out b/vlib/v/checker/tests/return_missing_comp_if_nested.out index 329ba665bf..4c24e859e0 100644 --- a/vlib/v/checker/tests/return_missing_comp_if_nested.out +++ b/vlib/v/checker/tests/return_missing_comp_if_nested.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/return_missing_comp_if_nested.v:3:1: error: missing return at end of function `foo` +vlib/v/checker/tests/return_missing_comp_if_nested.vv:3:1: error: missing return at end of function `foo` 1 | fn main() {} 2 | 3 | fn foo() string { diff --git a/vlib/v/checker/tests/return_missing_if_match.out b/vlib/v/checker/tests/return_missing_if_match.out index a4bd1ab9d3..d4877d874d 100644 --- a/vlib/v/checker/tests/return_missing_if_match.out +++ b/vlib/v/checker/tests/return_missing_if_match.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/return_missing_if_match.v:3:1: error: missing return at end of function `foo` +vlib/v/checker/tests/return_missing_if_match.vv:3:1: error: missing return at end of function `foo` 1 | fn main() {} 2 | 3 | fn foo() string { diff --git a/vlib/v/checker/tests/return_missing_match_if.out b/vlib/v/checker/tests/return_missing_match_if.out index ab92b4883b..196b3214aa 100644 --- a/vlib/v/checker/tests/return_missing_match_if.out +++ b/vlib/v/checker/tests/return_missing_match_if.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/return_missing_match_if.v:3:1: error: missing return at end of function `foo` +vlib/v/checker/tests/return_missing_match_if.vv:3:1: error: missing return at end of function `foo` 1 | fn main() {} 2 | 3 | fn foo() string { diff --git a/vlib/v/checker/tests/return_missing_nested.out b/vlib/v/checker/tests/return_missing_nested.out index dd9544977d..fce3245d97 100644 --- a/vlib/v/checker/tests/return_missing_nested.out +++ b/vlib/v/checker/tests/return_missing_nested.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/return_missing_nested.v:3:1: error: missing return at end of function `foo` +vlib/v/checker/tests/return_missing_nested.vv:3:1: error: missing return at end of function `foo` 1 | fn main() {} 2 | 3 | fn foo() string { diff --git a/vlib/v/checker/tests/return_missing_simple.out b/vlib/v/checker/tests/return_missing_simple.out index 2e7a4eda93..80163453c8 100644 --- a/vlib/v/checker/tests/return_missing_simple.out +++ b/vlib/v/checker/tests/return_missing_simple.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/return_missing_simple.v:3:1: error: missing return at end of function `foo` +vlib/v/checker/tests/return_missing_simple.vv:3:1: error: missing return at end of function `foo` 1 | fn main() {} 2 | 3 | fn foo() string { diff --git a/vlib/v/checker/tests/return_optional_err.out b/vlib/v/checker/tests/return_optional_err.out index 374d087dd9..dd158fb65b 100644 --- a/vlib/v/checker/tests/return_optional_err.out +++ b/vlib/v/checker/tests/return_optional_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/return_optional_err.v:4:13: error: cannot use `?string` as type `string` in return argument +vlib/v/checker/tests/return_optional_err.vv:4:13: error: cannot use `?string` as type `string` in return argument 2 | 3 | fn my_func() string { 4 | return os.read_file('/some/file/that/exists.txt') or {panic(err)} diff --git a/vlib/v/checker/tests/return_ref_as_no_ref_bug.out b/vlib/v/checker/tests/return_ref_as_no_ref_bug.out index 1f76d2088f..01b9990a74 100644 --- a/vlib/v/checker/tests/return_ref_as_no_ref_bug.out +++ b/vlib/v/checker/tests/return_ref_as_no_ref_bug.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/return_ref_as_no_ref_bug.v:11:9: error: fn `return_not_reference` expects you to return a non reference type `BugStruct`, but you are returning `&BugStruct` instead +vlib/v/checker/tests/return_ref_as_no_ref_bug.vv:11:9: error: fn `return_not_reference` expects you to return a non reference type `BugStruct`, but you are returning `&BugStruct` instead 9 | 10 | fn return_not_reference() BugStruct{ 11 | return &BugStruct { diff --git a/vlib/v/checker/tests/return_type.out b/vlib/v/checker/tests/return_type.out index 01c33a2e13..7af20bdd40 100644 --- a/vlib/v/checker/tests/return_type.out +++ b/vlib/v/checker/tests/return_type.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/return_type.v:2:9: error: cannot use `any_int` as type `bool` in return argument +vlib/v/checker/tests/return_type.vv:2:9: error: cannot use `any_int` as type `bool` in return argument 1 | fn test() bool { 2 | return 100 | ~~~ diff --git a/vlib/v/checker/tests/rshift_op_wrong_left_type_err.out b/vlib/v/checker/tests/rshift_op_wrong_left_type_err.out index 3bd0193aac..1c79a3ccc3 100644 --- a/vlib/v/checker/tests/rshift_op_wrong_left_type_err.out +++ b/vlib/v/checker/tests/rshift_op_wrong_left_type_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/rshift_op_wrong_left_type_err.v:2:10: error: invalid operation: shift of type `any_float` +vlib/v/checker/tests/rshift_op_wrong_left_type_err.vv:2:10: error: invalid operation: shift of type `any_float` 1 | fn main() { 2 | println(0.5 >> 1) | ~~~ diff --git a/vlib/v/checker/tests/rshift_op_wrong_right_type_err.out b/vlib/v/checker/tests/rshift_op_wrong_right_type_err.out index 8d62e7bb6b..2981c21b54 100644 --- a/vlib/v/checker/tests/rshift_op_wrong_right_type_err.out +++ b/vlib/v/checker/tests/rshift_op_wrong_right_type_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/rshift_op_wrong_right_type_err.v:2:15: error: cannot shift non-integer type any_float into type any_int +vlib/v/checker/tests/rshift_op_wrong_right_type_err.vv:2:15: error: cannot shift non-integer type any_float into type any_int 1 | fn main() { 2 | println(1 >> 0.5) | ~~~ diff --git a/vlib/v/checker/tests/run/assign_expr_unresolved_variables_err_chain.run.out b/vlib/v/checker/tests/run/assign_expr_unresolved_variables_err_chain.run.out index 7e6cb6ba61..50b56b24c0 100644 --- a/vlib/v/checker/tests/run/assign_expr_unresolved_variables_err_chain.run.out +++ b/vlib/v/checker/tests/run/assign_expr_unresolved_variables_err_chain.run.out @@ -1,10 +1,10 @@ -vlib/v/checker/tests/run/assign_expr_unresolved_variables_err_chain.v:2:7: error: undefined variable `b` (used before declaration) +vlib/v/checker/tests/run/assign_expr_unresolved_variables_err_chain.vv:2:7: error: undefined variable `b` (used before declaration) 1 | fn main() { 2 | a := b | ^ 3 | b := c 4 | c := a -vlib/v/checker/tests/run/assign_expr_unresolved_variables_err_chain.v:3:7: error: undefined variable `c` (used before declaration) +vlib/v/checker/tests/run/assign_expr_unresolved_variables_err_chain.vv:3:7: error: undefined variable `c` (used before declaration) 1 | fn main() { 2 | a := b 3 | b := c diff --git a/vlib/v/checker/tests/selector_expr_assign.out b/vlib/v/checker/tests/selector_expr_assign.out index ee7d7a9b7c..9e98006788 100644 --- a/vlib/v/checker/tests/selector_expr_assign.out +++ b/vlib/v/checker/tests/selector_expr_assign.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/selector_expr_assign.v:7:6: error: struct fields can only be declared during the initialization +vlib/v/checker/tests/selector_expr_assign.vv:7:6: error: struct fields can only be declared during the initialization 5 | fn main() { 6 | abc := Abc{} 7 | abc.a := 2 diff --git a/vlib/v/checker/tests/shift_op_wrong_left_type_err.out b/vlib/v/checker/tests/shift_op_wrong_left_type_err.out index 4c78d698e2..572ca9b0ee 100644 --- a/vlib/v/checker/tests/shift_op_wrong_left_type_err.out +++ b/vlib/v/checker/tests/shift_op_wrong_left_type_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/shift_op_wrong_left_type_err.v:2:10: error: invalid operation: shift of type `any_float` +vlib/v/checker/tests/shift_op_wrong_left_type_err.vv:2:10: error: invalid operation: shift of type `any_float` 1 | fn main() { 2 | println(0.5 << 1) | ~~~ diff --git a/vlib/v/checker/tests/shift_op_wrong_right_type_err.out b/vlib/v/checker/tests/shift_op_wrong_right_type_err.out index 9d22d5023a..6b8d0f8d24 100644 --- a/vlib/v/checker/tests/shift_op_wrong_right_type_err.out +++ b/vlib/v/checker/tests/shift_op_wrong_right_type_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/shift_op_wrong_right_type_err.v:2:15: error: cannot shift non-integer type any_float into type any_int +vlib/v/checker/tests/shift_op_wrong_right_type_err.vv:2:15: error: cannot shift non-integer type any_float into type any_int 1 | fn main() { 2 | println(1 << 0.5) | ~~~ diff --git a/vlib/v/checker/tests/short_struct_too_many.out b/vlib/v/checker/tests/short_struct_too_many.out index 384ffb0eef..275e67a1c8 100644 --- a/vlib/v/checker/tests/short_struct_too_many.out +++ b/vlib/v/checker/tests/short_struct_too_many.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/short_struct_too_many.v:6:7: error: too many fields +vlib/v/checker/tests/short_struct_too_many.vv:6:7: error: too many fields 4 | 5 | fn main() { 6 | t := Test{true, false} diff --git a/vlib/v/checker/tests/sort_method_called_on_immutable_receiver.out b/vlib/v/checker/tests/sort_method_called_on_immutable_receiver.out index 213bb2b9a5..d588267e6b 100644 --- a/vlib/v/checker/tests/sort_method_called_on_immutable_receiver.out +++ b/vlib/v/checker/tests/sort_method_called_on_immutable_receiver.out @@ -1,10 +1,10 @@ -vlib/v/checker/tests/sort_method_called_on_immutable_receiver.v:2:2: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/sort_method_called_on_immutable_receiver.vv:2:2: error: `a` is immutable, declare it with `mut` to make it mutable 1 | fn abc (a []int) { 2 | a.sort() | ^ 3 | } 4 | -vlib/v/checker/tests/sort_method_called_on_immutable_receiver.v:7:2: error: `a` is immutable, declare it with `mut` to make it mutable +vlib/v/checker/tests/sort_method_called_on_immutable_receiver.vv:7:2: error: `a` is immutable, declare it with `mut` to make it mutable 5 | fn main() { 6 | a := [2,30,10,20,1] 7 | a.sort(a>b) diff --git a/vlib/v/checker/tests/str_method_0_arguments.out b/vlib/v/checker/tests/str_method_0_arguments.out index 0a4f715225..9b8f1dffdc 100644 --- a/vlib/v/checker/tests/str_method_0_arguments.out +++ b/vlib/v/checker/tests/str_method_0_arguments.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/str_method_0_arguments.v:5:1: error: .str() methods should have 0 arguments +vlib/v/checker/tests/str_method_0_arguments.vv:5:1: error: .str() methods should have 0 arguments 3 | } 4 | 5 | fn (z Zzz) str(x int) string { diff --git a/vlib/v/checker/tests/str_method_return_string.out b/vlib/v/checker/tests/str_method_return_string.out index e949e9ac94..43bb36a3b8 100644 --- a/vlib/v/checker/tests/str_method_return_string.out +++ b/vlib/v/checker/tests/str_method_return_string.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/str_method_return_string.v:5:1: error: .str() methods should return `string` +vlib/v/checker/tests/str_method_return_string.vv:5:1: error: .str() methods should return `string` 3 | } 4 | 5 | fn (z Zzz) str(x int) int { diff --git a/vlib/v/checker/tests/string_index_assign_error.out b/vlib/v/checker/tests/string_index_assign_error.out index f54cd70bd6..be9369e5c2 100644 --- a/vlib/v/checker/tests/string_index_assign_error.out +++ b/vlib/v/checker/tests/string_index_assign_error.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/string_index_assign_error.v:3:6: error: cannot assign to s[i] since V strings are immutable +vlib/v/checker/tests/string_index_assign_error.vv:3:6: error: cannot assign to s[i] since V strings are immutable (note, that variables may be mutable but string values are always immutable, like in Go and Java) 1 | fn main() { 2 | mut a := 'V is great!!' diff --git a/vlib/v/checker/tests/string_interpolation_invalid_fmt.out b/vlib/v/checker/tests/string_interpolation_invalid_fmt.out index 8ffdc6638d..6ac3efeaf3 100644 --- a/vlib/v/checker/tests/string_interpolation_invalid_fmt.out +++ b/vlib/v/checker/tests/string_interpolation_invalid_fmt.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/string_interpolation_invalid_fmt.v:3:12: error: format specifier may only be one letter +vlib/v/checker/tests/string_interpolation_invalid_fmt.vv:3:12: error: format specifier may only be one letter 1 | fn interpolate_wrong() string { 2 | a := 5 3 | x := '${a:xy}' diff --git a/vlib/v/checker/tests/string_interpolation_wrong_fmt.out b/vlib/v/checker/tests/string_interpolation_wrong_fmt.out index b7dee9387a..4c9d7aea2f 100644 --- a/vlib/v/checker/tests/string_interpolation_wrong_fmt.out +++ b/vlib/v/checker/tests/string_interpolation_wrong_fmt.out @@ -1,60 +1,60 @@ -vlib/v/checker/tests/string_interpolation_wrong_fmt.v:3:16: error: precision specification only valid for float types +vlib/v/checker/tests/string_interpolation_wrong_fmt.vv:3:16: error: precision specification only valid for float types 1 | fn interpolate_str() string { 2 | a := 'hallo' 3 | x := '>${a:8.3s}<' | ^ 4 | y := '${a:G}' 5 | z := '${a:d}' -vlib/v/checker/tests/string_interpolation_wrong_fmt.v:4:12: error: illegal format specifier `G` for type `string` +vlib/v/checker/tests/string_interpolation_wrong_fmt.vv:4:12: error: illegal format specifier `G` for type `string` 2 | a := 'hallo' 3 | x := '>${a:8.3s}<' 4 | y := '${a:G}' | ^ 5 | z := '${a:d}' 6 | return x + y + z -vlib/v/checker/tests/string_interpolation_wrong_fmt.v:5:12: error: illegal format specifier `d` for type `string` +vlib/v/checker/tests/string_interpolation_wrong_fmt.vv:5:12: error: illegal format specifier `d` for type `string` 3 | x := '>${a:8.3s}<' 4 | y := '${a:G}' 5 | z := '${a:d}' | ^ 6 | return x + y + z 7 | } -vlib/v/checker/tests/string_interpolation_wrong_fmt.v:11:15: error: illegal format specifier `s` for type `f64` +vlib/v/checker/tests/string_interpolation_wrong_fmt.vv:11:15: error: illegal format specifier `s` for type `f64` 9 | fn interpolate_f64() string { 10 | b := 1367.57 11 | x := '>${b:20s}<' | ^ 12 | y := '${b:d}' 13 | return x + y -vlib/v/checker/tests/string_interpolation_wrong_fmt.v:12:12: error: illegal format specifier `d` for type `f64` +vlib/v/checker/tests/string_interpolation_wrong_fmt.vv:12:12: error: illegal format specifier `d` for type `f64` 10 | b := 1367.57 11 | x := '>${b:20s}<' 12 | y := '${b:d}' | ^ 13 | return x + y 14 | } -vlib/v/checker/tests/string_interpolation_wrong_fmt.v:19:14: error: illegal format specifier `d` for type `u32` +vlib/v/checker/tests/string_interpolation_wrong_fmt.vv:19:14: error: illegal format specifier `d` for type `u32` 17 | u := u32(15) 18 | s := -12 19 | x := '${u:13d}' | ^ 20 | y := '${s:04u}' 21 | z := '${s:f}' -vlib/v/checker/tests/string_interpolation_wrong_fmt.v:20:14: error: illegal format specifier `u` for type `int` +vlib/v/checker/tests/string_interpolation_wrong_fmt.vv:20:14: error: illegal format specifier `u` for type `int` 18 | s := -12 19 | x := '${u:13d}' 20 | y := '${s:04u}' | ^ 21 | z := '${s:f}' 22 | q := '${u:v}' -vlib/v/checker/tests/string_interpolation_wrong_fmt.v:21:12: error: illegal format specifier `f` for type `int` +vlib/v/checker/tests/string_interpolation_wrong_fmt.vv:21:12: error: illegal format specifier `f` for type `int` 19 | x := '${u:13d}' 20 | y := '${s:04u}' 21 | z := '${s:f}' | ^ 22 | q := '${u:v}' 23 | return x + y + z + q -vlib/v/checker/tests/string_interpolation_wrong_fmt.v:22:12: error: unknown format specifier `v` +vlib/v/checker/tests/string_interpolation_wrong_fmt.vv:22:12: error: unknown format specifier `v` 20 | y := '${s:04u}' 21 | z := '${s:f}' 22 | q := '${u:v}' diff --git a/vlib/v/checker/tests/struct_cast_to_struct_generic_err.out b/vlib/v/checker/tests/struct_cast_to_struct_generic_err.out index 531349a5aa..8d8cd9048c 100644 --- a/vlib/v/checker/tests/struct_cast_to_struct_generic_err.out +++ b/vlib/v/checker/tests/struct_cast_to_struct_generic_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/struct_cast_to_struct_generic_err.v:11:11: error: cannot convert struct `Abc` to struct `Xyz` +vlib/v/checker/tests/struct_cast_to_struct_generic_err.vv:11:11: error: cannot convert struct `Abc` to struct `Xyz` 9 | fn main() { 10 | abc := Abc{} 11 | _ := Xyz(abc) diff --git a/vlib/v/checker/tests/struct_cast_to_struct_mut_err_a.out b/vlib/v/checker/tests/struct_cast_to_struct_mut_err_a.out index 528249ef96..09ba707ae3 100644 --- a/vlib/v/checker/tests/struct_cast_to_struct_mut_err_a.out +++ b/vlib/v/checker/tests/struct_cast_to_struct_mut_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/struct_cast_to_struct_mut_err_a.v:12:11: error: cannot convert struct `Abc` to struct `Xyz` +vlib/v/checker/tests/struct_cast_to_struct_mut_err_a.vv:12:11: error: cannot convert struct `Abc` to struct `Xyz` 10 | fn main() { 11 | abc := Abc{} 12 | _ := Xyz(abc) diff --git a/vlib/v/checker/tests/struct_cast_to_struct_mut_err_b.out b/vlib/v/checker/tests/struct_cast_to_struct_mut_err_b.out index 627a1731ec..bf90a932aa 100644 --- a/vlib/v/checker/tests/struct_cast_to_struct_mut_err_b.out +++ b/vlib/v/checker/tests/struct_cast_to_struct_mut_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/struct_cast_to_struct_mut_err_b.v:12:11: error: cannot convert struct `Abc` to struct `Xyz` +vlib/v/checker/tests/struct_cast_to_struct_mut_err_b.vv:12:11: error: cannot convert struct `Abc` to struct `Xyz` 10 | fn main() { 11 | abc := Abc{} 12 | _ := Xyz(abc) diff --git a/vlib/v/checker/tests/struct_cast_to_struct_pub_err_a.out b/vlib/v/checker/tests/struct_cast_to_struct_pub_err_a.out index 010e62fb6d..078cd12868 100644 --- a/vlib/v/checker/tests/struct_cast_to_struct_pub_err_a.out +++ b/vlib/v/checker/tests/struct_cast_to_struct_pub_err_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/struct_cast_to_struct_pub_err_a.v:12:11: error: cannot convert struct `Abc` to struct `Xyz` +vlib/v/checker/tests/struct_cast_to_struct_pub_err_a.vv:12:11: error: cannot convert struct `Abc` to struct `Xyz` 10 | fn main() { 11 | abc := Abc{} 12 | _ := Xyz(abc) diff --git a/vlib/v/checker/tests/struct_cast_to_struct_pub_err_b.out b/vlib/v/checker/tests/struct_cast_to_struct_pub_err_b.out index 4b06d6ef20..f704603af7 100644 --- a/vlib/v/checker/tests/struct_cast_to_struct_pub_err_b.out +++ b/vlib/v/checker/tests/struct_cast_to_struct_pub_err_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/struct_cast_to_struct_pub_err_b.v:12:11: error: cannot convert struct `Abc` to struct `Xyz` +vlib/v/checker/tests/struct_cast_to_struct_pub_err_b.vv:12:11: error: cannot convert struct `Abc` to struct `Xyz` 10 | fn main() { 11 | abc := Abc{} 12 | _ := Xyz(abc) diff --git a/vlib/v/checker/tests/struct_field_name_duplicate_err.out b/vlib/v/checker/tests/struct_field_name_duplicate_err.out index 0b8a8b6dc5..691268c410 100644 --- a/vlib/v/checker/tests/struct_field_name_duplicate_err.out +++ b/vlib/v/checker/tests/struct_field_name_duplicate_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/struct_field_name_duplicate_err.v:3:2: error: field name `a` duplicate +vlib/v/checker/tests/struct_field_name_duplicate_err.vv:3:2: error: field name `a` duplicate 1 | struct Aaa { 2 | a int 3 | a string diff --git a/vlib/v/checker/tests/struct_pub_field.out b/vlib/v/checker/tests/struct_pub_field.out index 9a7fefc9e8..c0c34c7c83 100644 --- a/vlib/v/checker/tests/struct_pub_field.out +++ b/vlib/v/checker/tests/struct_pub_field.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/struct_pub_field.v:9:4: error: field `i` of struct `Foo` is immutable +vlib/v/checker/tests/struct_pub_field.vv:9:4: error: field `i` of struct `Foo` is immutable 7 | i: 1 8 | } 9 | a.i = 2 diff --git a/vlib/v/checker/tests/struct_unknown_field.out b/vlib/v/checker/tests/struct_unknown_field.out index 8009084882..2c544b0c60 100644 --- a/vlib/v/checker/tests/struct_unknown_field.out +++ b/vlib/v/checker/tests/struct_unknown_field.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/struct_unknown_field.v:8:3: error: unknown field `bar` in struct literal of type `Test` +vlib/v/checker/tests/struct_unknown_field.vv:8:3: error: unknown field `bar` in struct literal of type `Test` 6 | t := Test{ 7 | foo: true 8 | bar: false diff --git a/vlib/v/checker/tests/sum_type_exists.out b/vlib/v/checker/tests/sum_type_exists.out index 360d8e6d73..112bff190f 100644 --- a/vlib/v/checker/tests/sum_type_exists.out +++ b/vlib/v/checker/tests/sum_type_exists.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/sum_type_exists.v:1:1: error: type `Nope` doesn't exist +vlib/v/checker/tests/sum_type_exists.vv:1:1: error: type `Nope` doesn't exist 1 | type Miscellaneous = Nope | Inexistant | int | ~~~~~~~~~~~~~~~~~~ 2 | diff --git a/vlib/v/checker/tests/trailing_comma_struct_attr.out b/vlib/v/checker/tests/trailing_comma_struct_attr.out index ecc0493184..a33b49007f 100644 --- a/vlib/v/checker/tests/trailing_comma_struct_attr.out +++ b/vlib/v/checker/tests/trailing_comma_struct_attr.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/trailing_comma_struct_attr.v:3:31: error: unexpected `]`, expecting `name` +vlib/v/checker/tests/trailing_comma_struct_attr.vv:3:31: error: unexpected `]`, expecting `name` 1 | struct User { 2 | name string 3 | jobs []string [json:jobss;] diff --git a/vlib/v/checker/tests/unexpected_or.out b/vlib/v/checker/tests/unexpected_or.out index f02adcb6b5..b63edf200b 100644 --- a/vlib/v/checker/tests/unexpected_or.out +++ b/vlib/v/checker/tests/unexpected_or.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unexpected_or.v:6:6: error: unexpected `or` block, the function `ret_zero` does not return an optional +vlib/v/checker/tests/unexpected_or.vv:6:6: error: unexpected `or` block, the function `ret_zero` does not return an optional 4 | 5 | fn main() { 6 | _ = ret_zero() or { 1 } diff --git a/vlib/v/checker/tests/unexpected_or_propagate.out b/vlib/v/checker/tests/unexpected_or_propagate.out index b5e6852581..86ab6c233f 100644 --- a/vlib/v/checker/tests/unexpected_or_propagate.out +++ b/vlib/v/checker/tests/unexpected_or_propagate.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unexpected_or_propagate.v:6:7: error: unexpected `?`, the function `ret_zero`, does not return an optional +vlib/v/checker/tests/unexpected_or_propagate.vv:6:7: error: unexpected `?`, the function `ret_zero`, does not return an optional 4 | 5 | fn opt_fn() ?int { 6 | a := ret_zero()? diff --git a/vlib/v/checker/tests/unimplemented_interface_a.out b/vlib/v/checker/tests/unimplemented_interface_a.out index 73774f25a9..c4bb12f89c 100644 --- a/vlib/v/checker/tests/unimplemented_interface_a.out +++ b/vlib/v/checker/tests/unimplemented_interface_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unimplemented_interface_a.v:10:6: error: `Cat` doesn't implement method `name` +vlib/v/checker/tests/unimplemented_interface_a.vv:10:6: error: `Cat` doesn't implement method `name` 8 | 9 | fn main() { 10 | foo(Cat{}) diff --git a/vlib/v/checker/tests/unimplemented_interface_b.out b/vlib/v/checker/tests/unimplemented_interface_b.out index fa14d4cdf0..a0d4b902a6 100644 --- a/vlib/v/checker/tests/unimplemented_interface_b.out +++ b/vlib/v/checker/tests/unimplemented_interface_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unimplemented_interface_b.v:13:6: error: `Cat` incorrectly implements method `name` of interface `Animal`, expected `name() string` +vlib/v/checker/tests/unimplemented_interface_b.vv:13:6: error: `Cat` incorrectly implements method `name` of interface `Animal`, expected `name() string` 11 | fn main() { 12 | c := Cat{} 13 | foo(c) diff --git a/vlib/v/checker/tests/unimplemented_interface_c.out b/vlib/v/checker/tests/unimplemented_interface_c.out index 2129ed11bb..e8685dcde9 100644 --- a/vlib/v/checker/tests/unimplemented_interface_c.out +++ b/vlib/v/checker/tests/unimplemented_interface_c.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unimplemented_interface_c.v:12:6: error: `Cat` incorrectly implements method `name` of interface `Animal`, expected `name()` +vlib/v/checker/tests/unimplemented_interface_c.vv:12:6: error: `Cat` incorrectly implements method `name` of interface `Animal`, expected `name()` 10 | 11 | fn main() { 12 | foo(Cat{}) diff --git a/vlib/v/checker/tests/unimplemented_interface_d.out b/vlib/v/checker/tests/unimplemented_interface_d.out index a0085d9335..19afc42c01 100644 --- a/vlib/v/checker/tests/unimplemented_interface_d.out +++ b/vlib/v/checker/tests/unimplemented_interface_d.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unimplemented_interface_d.v:12:6: error: `Cat` incorrectly implements method `speak` of interface `Animal`, expected `speak(s string)` +vlib/v/checker/tests/unimplemented_interface_d.vv:12:6: error: `Cat` incorrectly implements method `speak` of interface `Animal`, expected `speak(s string)` 10 | 11 | fn main() { 12 | foo(Cat{}) diff --git a/vlib/v/checker/tests/unimplemented_interface_e.out b/vlib/v/checker/tests/unimplemented_interface_e.out index 3c58a122b0..83b3a40425 100644 --- a/vlib/v/checker/tests/unimplemented_interface_e.out +++ b/vlib/v/checker/tests/unimplemented_interface_e.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unimplemented_interface_e.v:12:6: error: `Cat` incorrectly implements method `speak` of interface `Animal`, expected `speak(s string)` +vlib/v/checker/tests/unimplemented_interface_e.vv:12:6: error: `Cat` incorrectly implements method `speak` of interface `Animal`, expected `speak(s string)` 10 | 11 | fn main() { 12 | foo(Cat{}) diff --git a/vlib/v/checker/tests/unimplemented_interface_f.out b/vlib/v/checker/tests/unimplemented_interface_f.out index 8a6837a58e..07feb52d8e 100644 --- a/vlib/v/checker/tests/unimplemented_interface_f.out +++ b/vlib/v/checker/tests/unimplemented_interface_f.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unimplemented_interface_f.v:11:13: error: `Cat` incorrectly implements method `speak` of interface `Animal`, expected `speak(s string)` +vlib/v/checker/tests/unimplemented_interface_f.vv:11:13: error: `Cat` incorrectly implements method `speak` of interface `Animal`, expected `speak(s string)` 9 | fn main() { 10 | mut animals := []Animal{} 11 | animals << Cat{} diff --git a/vlib/v/checker/tests/unimplemented_interface_g.out b/vlib/v/checker/tests/unimplemented_interface_g.out index 1a148a8418..61c2cd3267 100644 --- a/vlib/v/checker/tests/unimplemented_interface_g.out +++ b/vlib/v/checker/tests/unimplemented_interface_g.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unimplemented_interface_g.v:12:13: error: `Cat` incorrectly implements method `speak` of interface `Animal`, expected `speak(s string)` +vlib/v/checker/tests/unimplemented_interface_g.vv:12:13: error: `Cat` incorrectly implements method `speak` of interface `Animal`, expected `speak(s string)` 10 | mut animals := []Animal{} 11 | mut cats := []Cat{} 12 | animals << cats diff --git a/vlib/v/checker/tests/unknown_array_element_type_a.out b/vlib/v/checker/tests/unknown_array_element_type_a.out index d63be51d68..41ea9981ae 100644 --- a/vlib/v/checker/tests/unknown_array_element_type_a.out +++ b/vlib/v/checker/tests/unknown_array_element_type_a.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unknown_array_element_type_a.v:2:9: error: unknown type `abc` +vlib/v/checker/tests/unknown_array_element_type_a.vv:2:9: error: unknown type `abc` 1 | fn main() { 2 | a := []abc{} | ~~~ diff --git a/vlib/v/checker/tests/unknown_array_element_type_b.out b/vlib/v/checker/tests/unknown_array_element_type_b.out index 3a5af34ef2..df7e9104b2 100644 --- a/vlib/v/checker/tests/unknown_array_element_type_b.out +++ b/vlib/v/checker/tests/unknown_array_element_type_b.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unknown_array_element_type_b.v:2:2: error: unknown type `abc` +vlib/v/checker/tests/unknown_array_element_type_b.vv:2:2: error: unknown type `abc` 1 | struct Aaa { 2 | a []abc | ~~~~~~~ diff --git a/vlib/v/checker/tests/unknown_as_type.out b/vlib/v/checker/tests/unknown_as_type.out index 33069bd9f0..929c166389 100644 --- a/vlib/v/checker/tests/unknown_as_type.out +++ b/vlib/v/checker/tests/unknown_as_type.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unknown_as_type.v:7:9: error: unknown type `Stringg` +vlib/v/checker/tests/unknown_as_type.vv:7:9: error: unknown type `Stringg` 5 | 6 | fn foo(e Expr) { 7 | x := e as Stringg diff --git a/vlib/v/checker/tests/unknown_field.out b/vlib/v/checker/tests/unknown_field.out index 534a98d8d9..4596830351 100644 --- a/vlib/v/checker/tests/unknown_field.out +++ b/vlib/v/checker/tests/unknown_field.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unknown_field.v:7:12: error: type `Test` has no field or method `sdd` +vlib/v/checker/tests/unknown_field.vv:7:12: error: type `Test` has no field or method `sdd` 5 | fn main() { 6 | t := Test{} 7 | println(t.sdd) diff --git a/vlib/v/checker/tests/unknown_method.out b/vlib/v/checker/tests/unknown_method.out index 33b4b050fd..2a29e0a718 100644 --- a/vlib/v/checker/tests/unknown_method.out +++ b/vlib/v/checker/tests/unknown_method.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unknown_method.v:7:12: error: unknown method: `Test.sdd` +vlib/v/checker/tests/unknown_method.vv:7:12: error: unknown method: `Test.sdd` 5 | fn main() { 6 | t := Test{} 7 | println(t.sdd()) diff --git a/vlib/v/checker/tests/unknown_method_suggest_name.out b/vlib/v/checker/tests/unknown_method_suggest_name.out index 080a24f3ee..39d47fe12d 100644 --- a/vlib/v/checker/tests/unknown_method_suggest_name.out +++ b/vlib/v/checker/tests/unknown_method_suggest_name.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unknown_method_suggest_name.v:7:2: error: unknown type `hash.crc32.Crc33`. +vlib/v/checker/tests/unknown_method_suggest_name.vv:7:2: error: unknown type `hash.crc32.Crc33`. Did you mean `crc32.Crc32`? 5 | y int 6 | z int @@ -6,7 +6,7 @@ Did you mean `crc32.Crc32`? | ~~~~~~~~~~~~~~~ 8 | } 9 | -vlib/v/checker/tests/unknown_method_suggest_name.v:27:9: error: unknown method: `Point.tranzlate`. +vlib/v/checker/tests/unknown_method_suggest_name.vv:27:9: error: unknown method: `Point.tranzlate`. Did you mean `translate`? 25 | p := Point{1, 2, 3} 26 | v := Vector{5, 5, 10} diff --git a/vlib/v/checker/tests/unknown_var_assign.out b/vlib/v/checker/tests/unknown_var_assign.out index c129fa4780..566768d9fb 100644 --- a/vlib/v/checker/tests/unknown_var_assign.out +++ b/vlib/v/checker/tests/unknown_var_assign.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unknown_var_assign.v:2:5: error: undefined ident: `x` (use `:=` to assign a variable) +vlib/v/checker/tests/unknown_var_assign.vv:2:5: error: undefined ident: `x` (use `:=` to assign a variable) 1 | fn main() { 2 | x = 'hello v' | ^ diff --git a/vlib/v/checker/tests/unnecessary_parenthesis.out b/vlib/v/checker/tests/unnecessary_parenthesis.out index 3185c6f67f..4aa477142d 100644 --- a/vlib/v/checker/tests/unnecessary_parenthesis.out +++ b/vlib/v/checker/tests/unnecessary_parenthesis.out @@ -1,17 +1,17 @@ -vlib/v/checker/tests/unnecessary_parenthesis.v:2:2: error: unnecessary `()` in an if condition. use `if expr {` instead of `if (expr) {`. +vlib/v/checker/tests/unnecessary_parenthesis.vv:2:2: error: unnecessary `()` in an if condition. use `if expr {` instead of `if (expr) {`. 1 | fn main() { 2 | if (1 == 1) { | ~~~~~~~~~~~ 3 | println('yeay') 4 | } else if (1 == 2) { -vlib/v/checker/tests/unnecessary_parenthesis.v:4:4: error: unnecessary `()` in an if condition. use `if expr {` instead of `if (expr) {`. +vlib/v/checker/tests/unnecessary_parenthesis.vv:4:4: error: unnecessary `()` in an if condition. use `if expr {` instead of `if (expr) {`. 2 | if (1 == 1) { 3 | println('yeay') 4 | } else if (1 == 2) { | ~~~~~~~~~~~~~~~~ 5 | println("oh no :'(") 6 | } else if (1 == 3) { -vlib/v/checker/tests/unnecessary_parenthesis.v:6:4: error: unnecessary `()` in an if condition. use `if expr {` instead of `if (expr) {`. +vlib/v/checker/tests/unnecessary_parenthesis.vv:6:4: error: unnecessary `()` in an if condition. use `if expr {` instead of `if (expr) {`. 4 | } else if (1 == 2) { 5 | println("oh no :'(") 6 | } else if (1 == 3) { diff --git a/vlib/v/checker/tests/unreachable_code.out b/vlib/v/checker/tests/unreachable_code.out index d068f8e622..ae0dc92936 100644 --- a/vlib/v/checker/tests/unreachable_code.out +++ b/vlib/v/checker/tests/unreachable_code.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/unreachable_code.v:3:4: error: unreachable code +vlib/v/checker/tests/unreachable_code.vv:3:4: error: unreachable code 1 | fn foo() int { 2 | return if 1 == 1 { 1 } else { 2 } 3 | a := 1 diff --git a/vlib/v/checker/tests/unsafe_c_calls_should_be_checked.out b/vlib/v/checker/tests/unsafe_c_calls_should_be_checked.out index 6a2e7aa013..3d791c40fd 100644 --- a/vlib/v/checker/tests/unsafe_c_calls_should_be_checked.out +++ b/vlib/v/checker/tests/unsafe_c_calls_should_be_checked.out @@ -1,11 +1,11 @@ -vlib/v/checker/tests/unsafe_c_calls_should_be_checked.v:3:16: error: function `C.malloc` must be called from an `unsafe` block +vlib/v/checker/tests/unsafe_c_calls_should_be_checked.vv:3:16: error: function `C.malloc` must be called from an `unsafe` block 1 | 2 | fn test_c() { 3 | mut p := C.malloc(4) | ~~~~~~~~~ 4 | s := 'hope' 5 | C.memcpy(p, s.str, 4) -vlib/v/checker/tests/unsafe_c_calls_should_be_checked.v:5:7: error: function `C.memcpy` must be called from an `unsafe` block +vlib/v/checker/tests/unsafe_c_calls_should_be_checked.vv:5:7: error: function `C.memcpy` must be called from an `unsafe` block 3 | mut p := C.malloc(4) 4 | s := 'hope' 5 | C.memcpy(p, s.str, 4) diff --git a/vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.out b/vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.out index 503b5eeaaa..e60bfa2612 100644 --- a/vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.out +++ b/vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.out @@ -1,32 +1,32 @@ -vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.v:4:6: error: pointer arithmetic is only allowed in `unsafe` blocks +vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.vv:4:6: error: pointer arithmetic is only allowed in `unsafe` blocks 2 | mut v := 5 3 | mut p := &v 4 | p++ | ~~ 5 | p += 2 6 | _ := v -vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.v:5:7: error: pointer arithmetic is only allowed in `unsafe` blocks +vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.vv:5:7: error: pointer arithmetic is only allowed in `unsafe` blocks 3 | mut p := &v 4 | p++ 5 | p += 2 | ~~ 6 | _ := v 7 | } -vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.v:11:14: error: pointer arithmetic is only allowed in `unsafe` blocks +vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.vv:11:14: error: pointer arithmetic is only allowed in `unsafe` blocks 9 | fn test_ptr_infix() { 10 | v := 4 11 | mut q := &v - 1 | ^ 12 | q = q + 3 13 | _ := q -vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.v:12:9: error: pointer arithmetic is only allowed in `unsafe` blocks +vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.vv:12:9: error: pointer arithmetic is only allowed in `unsafe` blocks 10 | v := 4 11 | mut q := &v - 1 12 | q = q + 3 | ^ 13 | _ := q 14 | _ := v -vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.v:24:7: error: method `S1.f` must be called from an `unsafe` block +vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.vv:24:7: error: method `S1.f` must be called from an `unsafe` block 22 | fn test_funcs() { 23 | s := S1{} 24 | s.f() diff --git a/vlib/v/checker/tests/unsafe_required.out b/vlib/v/checker/tests/unsafe_required.out index c47ea8128a..9c04832cc4 100644 --- a/vlib/v/checker/tests/unsafe_required.out +++ b/vlib/v/checker/tests/unsafe_required.out @@ -1,46 +1,46 @@ -vlib/v/checker/tests/unsafe_required.v:4:3: error: pointer arithmetic is only allowed in `unsafe` blocks +vlib/v/checker/tests/unsafe_required.vv:4:3: error: pointer arithmetic is only allowed in `unsafe` blocks 2 | mut v := 5 3 | mut p := &v 4 | p++ | ~~ 5 | p += 2 6 | _ := v -vlib/v/checker/tests/unsafe_required.v:5:4: error: pointer arithmetic is only allowed in `unsafe` blocks +vlib/v/checker/tests/unsafe_required.vv:5:4: error: pointer arithmetic is only allowed in `unsafe` blocks 3 | mut p := &v 4 | p++ 5 | p += 2 | ~~ 6 | _ := v 7 | } -vlib/v/checker/tests/unsafe_required.v:11:14: error: pointer arithmetic is only allowed in `unsafe` blocks +vlib/v/checker/tests/unsafe_required.vv:11:14: error: pointer arithmetic is only allowed in `unsafe` blocks 9 | fn test_ptr_infix() { 10 | v := 4 11 | mut q := &v - 1 | ^ 12 | q = q + 3 13 | _ := q -vlib/v/checker/tests/unsafe_required.v:12:9: error: pointer arithmetic is only allowed in `unsafe` blocks +vlib/v/checker/tests/unsafe_required.vv:12:9: error: pointer arithmetic is only allowed in `unsafe` blocks 10 | v := 4 11 | mut q := &v - 1 12 | q = q + 3 | ^ 13 | _ := q 14 | _ := v -vlib/v/checker/tests/unsafe_required.v:24:7: error: method `S1.f` must be called from an `unsafe` block +vlib/v/checker/tests/unsafe_required.vv:24:7: error: method `S1.f` must be called from an `unsafe` block 22 | fn test_funcs() { 23 | s := S1{} 24 | s.f() | ~~~ 25 | } 26 | -vlib/v/checker/tests/unsafe_required.v:32:7: error: pointer indexing is only allowed in `unsafe` blocks +vlib/v/checker/tests/unsafe_required.vv:32:7: error: pointer indexing is only allowed in `unsafe` blocks 30 | _ = b[0] 31 | c := &b 32 | _ = c[0] | ~~~ 33 | 34 | v := 4 -vlib/v/checker/tests/unsafe_required.v:36:10: error: pointer indexing is only allowed in `unsafe` blocks +vlib/v/checker/tests/unsafe_required.vv:36:10: error: pointer indexing is only allowed in `unsafe` blocks 34 | v := 4 35 | p := &v 36 | _ = p[0] diff --git a/vlib/v/checker/tests/use_deprecated_function_warning.out b/vlib/v/checker/tests/use_deprecated_function_warning.out index e7039e6278..9e3c353a12 100644 --- a/vlib/v/checker/tests/use_deprecated_function_warning.out +++ b/vlib/v/checker/tests/use_deprecated_function_warning.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/use_deprecated_function_warning.v:3:5: error: function `os.cp_r` has been deprecated +vlib/v/checker/tests/use_deprecated_function_warning.vv:3:5: error: function `os.cp_r` has been deprecated 1 | import os 2 | fn main() { 3 | os.cp_r('./aa', './bb', true) diff --git a/vlib/v/checker/tests/var_eval_not_used.out b/vlib/v/checker/tests/var_eval_not_used.out index 4f1cc44c5a..2cb35938b4 100644 --- a/vlib/v/checker/tests/var_eval_not_used.out +++ b/vlib/v/checker/tests/var_eval_not_used.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/var_eval_not_used.v:6:2: error: `c` evaluated but not used +vlib/v/checker/tests/var_eval_not_used.vv:6:2: error: `c` evaluated but not used 4 | 5 | fn main() { 6 | c diff --git a/vlib/v/checker/tests/var_eval_not_used_scope.out b/vlib/v/checker/tests/var_eval_not_used_scope.out index a1b1e01a19..89c4afd486 100644 --- a/vlib/v/checker/tests/var_eval_not_used_scope.out +++ b/vlib/v/checker/tests/var_eval_not_used_scope.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/var_eval_not_used_scope.v:7:3: error: `c` evaluated but not used +vlib/v/checker/tests/var_eval_not_used_scope.vv:7:3: error: `c` evaluated but not used 5 | fn main() { 6 | { 7 | c diff --git a/vlib/v/checker/tests/var_used_before_declaration.out b/vlib/v/checker/tests/var_used_before_declaration.out index 47ff91fa99..3909edde47 100644 --- a/vlib/v/checker/tests/var_used_before_declaration.out +++ b/vlib/v/checker/tests/var_used_before_declaration.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/var_used_before_declaration.v:2:13: error: undefined variable `x` (used before declaration) +vlib/v/checker/tests/var_used_before_declaration.vv:2:13: error: undefined variable `x` (used before declaration) 1 | fn main() { 2 | println(x) | ^ diff --git a/vlib/v/checker/tests/void_fn_as_value.out b/vlib/v/checker/tests/void_fn_as_value.out index ce188c700b..9898c195be 100644 --- a/vlib/v/checker/tests/void_fn_as_value.out +++ b/vlib/v/checker/tests/void_fn_as_value.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/void_fn_as_value.v:5:7: error: unknown function: x +vlib/v/checker/tests/void_fn_as_value.vv:5:7: error: unknown function: x 3 | fn main() { 4 | mut a := 'aa' 5 | a += x('a','b') diff --git a/vlib/v/checker/tests/void_function_assign_to_string.out b/vlib/v/checker/tests/void_function_assign_to_string.out index c1483c74e0..b04d39c8bf 100644 --- a/vlib/v/checker/tests/void_function_assign_to_string.out +++ b/vlib/v/checker/tests/void_function_assign_to_string.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/void_function_assign_to_string.v:6:4: error: assignment mismatch: 1 variable(s) but `x()` returns 0 value(s) +vlib/v/checker/tests/void_function_assign_to_string.vv:6:4: error: assignment mismatch: 1 variable(s) but `x()` returns 0 value(s) 4 | fn main(){ 5 | mut a := '' 6 | a = x(1,2) // hello diff --git a/vlib/v/checker/tests/void_optional_err.out b/vlib/v/checker/tests/void_optional_err.out index 425224983d..c9efcb72bd 100644 --- a/vlib/v/checker/tests/void_optional_err.out +++ b/vlib/v/checker/tests/void_optional_err.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/void_optional_err.v:1:16: error: use `?` instead of `?void` +vlib/v/checker/tests/void_optional_err.vv:1:16: error: use `?` instead of `?void` 1 | fn ret_void() ?void { | ~~~~ 2 | return error('error') diff --git a/vlib/v/checker/tests/warnings_for_string_c2v_calls.out b/vlib/v/checker/tests/warnings_for_string_c2v_calls.out index e91fc26939..da7a6ae3d9 100644 --- a/vlib/v/checker/tests/warnings_for_string_c2v_calls.out +++ b/vlib/v/checker/tests/warnings_for_string_c2v_calls.out @@ -1,11 +1,11 @@ -vlib/v/checker/tests/warnings_for_string_c2v_calls.v:8:14: error: to convert a C string buffer pointer to a V string, please use x.vstring() instead of string(x) +vlib/v/checker/tests/warnings_for_string_c2v_calls.vv:8:14: error: to convert a C string buffer pointer to a V string, please use x.vstring() instead of string(x) 6 | p[2] = `z` 7 | } 8 | x := string(p) | ^ 9 | y := string(p, 10) 10 | eprintln('x: $x | y: $y') -vlib/v/checker/tests/warnings_for_string_c2v_calls.v:9:14: error: to convert a C string buffer pointer to a V string, please use x.vstring_with_len(len) instead of string(x,len) +vlib/v/checker/tests/warnings_for_string_c2v_calls.vv:9:14: error: to convert a C string buffer pointer to a V string, please use x.vstring_with_len(len) instead of string(x,len) 7 | } 8 | x := string(p) 9 | y := string(p, 10) diff --git a/vlib/v/checker/tests/wrong_propagate_ret_type.out b/vlib/v/checker/tests/wrong_propagate_ret_type.out index c4ef1ed49e..ed4f6ca88c 100644 --- a/vlib/v/checker/tests/wrong_propagate_ret_type.out +++ b/vlib/v/checker/tests/wrong_propagate_ret_type.out @@ -1,4 +1,4 @@ -vlib/v/checker/tests/wrong_propagate_ret_type.v:6:7: error: to propagate the optional call, `opt_call` must itself return an optional +vlib/v/checker/tests/wrong_propagate_ret_type.vv:6:7: error: to propagate the optional call, `opt_call` must itself return an optional 4 | 5 | fn opt_call() int { 6 | a := ret_none()? diff --git a/vlib/v/compiler_errors_test.v b/vlib/v/compiler_errors_test.v index 8b972926fe..3066b3fabe 100644 --- a/vlib/v/compiler_errors_test.v +++ b/vlib/v/compiler_errors_test.v @@ -121,22 +121,18 @@ fn work_processor(mut work sync.Channel, mut results sync.Channel) { // actual processing; NB: no output is done here at all fn (mut task TaskDescription) execute() { - program := task.path.replace('.vv', '.v') - os.cp(task.path, program) or { + program := task.path + cli_cmd := '$task.vexe $task.voptions $program' + res := os.exec(cli_cmd) or { panic(err) } - res := os.exec('$task.vexe $task.voptions $program') or { - panic(err) - } - mut expected := os.read_file(program.replace('.v', '') + task.result_extension) or { + mut expected := os.read_file(program.replace('.vv', '') + task.result_extension) or { panic(err) } task.expected = clean_line_endings(expected) task.found___ = clean_line_endings(res.output) if task.expected != task.found___ { task.is_error = true - } else { - os.rm(program) } } diff --git a/vlib/v/parser/tests/dec_use_as_value.out b/vlib/v/parser/tests/dec_use_as_value.out index 6c6a0ed17f..91587e12ac 100644 --- a/vlib/v/parser/tests/dec_use_as_value.out +++ b/vlib/v/parser/tests/dec_use_as_value.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/dec_use_as_value.v:2:16: error: cannot use i-- as value +vlib/v/parser/tests/dec_use_as_value.vv:2:16: error: cannot use i-- as value 1 | fn main() { 2 | for i := 100; i--; i > 0 { | ^ diff --git a/vlib/v/parser/tests/duplicate_type_a.out b/vlib/v/parser/tests/duplicate_type_a.out index 06868637fd..a2324a44d5 100644 --- a/vlib/v/parser/tests/duplicate_type_a.out +++ b/vlib/v/parser/tests/duplicate_type_a.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/duplicate_type_a.v:3:11: error: cannot register interface `Foo`, another type with this name exists +vlib/v/parser/tests/duplicate_type_a.vv:3:11: error: cannot register interface `Foo`, another type with this name exists 1 | struct Foo {} 2 | 3 | interface Foo {} diff --git a/vlib/v/parser/tests/duplicate_type_b.out b/vlib/v/parser/tests/duplicate_type_b.out index c11be5cc11..6831fdacbb 100644 --- a/vlib/v/parser/tests/duplicate_type_b.out +++ b/vlib/v/parser/tests/duplicate_type_b.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/duplicate_type_b.v:3:8: error: cannot register struct `Foo`, another type with this name exists +vlib/v/parser/tests/duplicate_type_b.vv:3:8: error: cannot register struct `Foo`, another type with this name exists 1 | interface Foo {} 2 | 3 | struct Foo {} diff --git a/vlib/v/parser/tests/expr_evaluated_but_not_used_a.out b/vlib/v/parser/tests/expr_evaluated_but_not_used_a.out index faf61f6dff..e83390f93d 100644 --- a/vlib/v/parser/tests/expr_evaluated_but_not_used_a.out +++ b/vlib/v/parser/tests/expr_evaluated_but_not_used_a.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/expr_evaluated_but_not_used_a.v:2:2: error: expression evaluated but not used +vlib/v/parser/tests/expr_evaluated_but_not_used_a.vv:2:2: error: expression evaluated but not used 1 | fn main() { 2 | 'hello' | ~~~~~~~ diff --git a/vlib/v/parser/tests/expr_evaluated_but_not_used_b.out b/vlib/v/parser/tests/expr_evaluated_but_not_used_b.out index 592abd5dd7..437f89a6a4 100644 --- a/vlib/v/parser/tests/expr_evaluated_but_not_used_b.out +++ b/vlib/v/parser/tests/expr_evaluated_but_not_used_b.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/expr_evaluated_but_not_used_b.v:2:2: error: expression evaluated but not used +vlib/v/parser/tests/expr_evaluated_but_not_used_b.vv:2:2: error: expression evaluated but not used 1 | fn main() { 2 | 22 | ~~ diff --git a/vlib/v/parser/tests/expr_evaluated_but_not_used_c.out b/vlib/v/parser/tests/expr_evaluated_but_not_used_c.out index 98a9669d02..f6dbc232ee 100644 --- a/vlib/v/parser/tests/expr_evaluated_but_not_used_c.out +++ b/vlib/v/parser/tests/expr_evaluated_but_not_used_c.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/expr_evaluated_but_not_used_c.v:3:5: error: expression evaluated but not used +vlib/v/parser/tests/expr_evaluated_but_not_used_c.vv:3:5: error: expression evaluated but not used 1 | fn main() { 2 | a := 10 3 | `b` diff --git a/vlib/v/parser/tests/expr_evaluated_but_not_used_d.out b/vlib/v/parser/tests/expr_evaluated_but_not_used_d.out index 0f88cbbb66..663a7c9e4b 100644 --- a/vlib/v/parser/tests/expr_evaluated_but_not_used_d.out +++ b/vlib/v/parser/tests/expr_evaluated_but_not_used_d.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/expr_evaluated_but_not_used_d.v:4:5: error: expression evaluated but not used +vlib/v/parser/tests/expr_evaluated_but_not_used_d.vv:4:5: error: expression evaluated but not used 2 | a := 1 3 | b := 2 4 | a+b diff --git a/vlib/v/parser/tests/fn_attributes_duplicate_multiple.out b/vlib/v/parser/tests/fn_attributes_duplicate_multiple.out index b82d0bb735..c8015cad6d 100644 --- a/vlib/v/parser/tests/fn_attributes_duplicate_multiple.out +++ b/vlib/v/parser/tests/fn_attributes_duplicate_multiple.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/fn_attributes_duplicate_multiple.v:2:2: error: duplicate attribute `inline` +vlib/v/parser/tests/fn_attributes_duplicate_multiple.vv:2:2: error: duplicate attribute `inline` 1 | [inline] 2 | [inline] | ~~~~~~ diff --git a/vlib/v/parser/tests/fn_attributes_duplicate_single.out b/vlib/v/parser/tests/fn_attributes_duplicate_single.out index c135743ff7..34a90cdae9 100644 --- a/vlib/v/parser/tests/fn_attributes_duplicate_single.out +++ b/vlib/v/parser/tests/fn_attributes_duplicate_single.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/fn_attributes_duplicate_single.v:1:10: error: duplicate attribute `inline` +vlib/v/parser/tests/fn_attributes_duplicate_single.vv:1:10: error: duplicate attribute `inline` 1 | [inline; inline] | ~~~~~~ 2 | fn foo() {} diff --git a/vlib/v/parser/tests/fn_attributes_empty_err.out b/vlib/v/parser/tests/fn_attributes_empty_err.out index c4a1c874d6..d021aee7e1 100644 --- a/vlib/v/parser/tests/fn_attributes_empty_err.out +++ b/vlib/v/parser/tests/fn_attributes_empty_err.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/fn_attributes_empty_err.v:1:1: error: attributes cannot be empty +vlib/v/parser/tests/fn_attributes_empty_err.vv:1:1: error: attributes cannot be empty 1 | [] fn tt() { | ~~ 2 | println('text') diff --git a/vlib/v/parser/tests/fn_type_only_args_in_interfaces.out b/vlib/v/parser/tests/fn_type_only_args_in_interfaces.out index 0ce9615bbf..acc1399e77 100755 --- a/vlib/v/parser/tests/fn_type_only_args_in_interfaces.out +++ b/vlib/v/parser/tests/fn_type_only_args_in_interfaces.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/fn_type_only_args_in_interfaces.v:22:1: error: `syntax_error` evaluated but not used +vlib/v/parser/tests/fn_type_only_args_in_interfaces.vv:22:1: error: `syntax_error` evaluated but not used 20 | } 21 | 22 | syntax_error diff --git a/vlib/v/parser/tests/fn_type_only_args_no_body.out b/vlib/v/parser/tests/fn_type_only_args_no_body.out index ebf7db6ea6..fad0819c17 100644 --- a/vlib/v/parser/tests/fn_type_only_args_no_body.out +++ b/vlib/v/parser/tests/fn_type_only_args_no_body.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/fn_type_only_args_no_body.v:2:1: error: functions with type only args can not have bodies +vlib/v/parser/tests/fn_type_only_args_no_body.vv:2:1: error: functions with type only args can not have bodies 1 | fn test(int) { 2 | } | ^ diff --git a/vlib/v/parser/tests/fn_type_only_args_unknown_name.out b/vlib/v/parser/tests/fn_type_only_args_unknown_name.out index f90443c8ef..1f94768f83 100644 --- a/vlib/v/parser/tests/fn_type_only_args_unknown_name.out +++ b/vlib/v/parser/tests/fn_type_only_args_unknown_name.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/fn_type_only_args_unknown_name.v:2:1: error: functions with type only args can not have bodies +vlib/v/parser/tests/fn_type_only_args_unknown_name.vv:2:1: error: functions with type only args can not have bodies 1 | fn test(param) { 2 | } | ^ diff --git a/vlib/v/parser/tests/inc_use_as_value.out b/vlib/v/parser/tests/inc_use_as_value.out index 2727bd54dc..11888f89d5 100644 --- a/vlib/v/parser/tests/inc_use_as_value.out +++ b/vlib/v/parser/tests/inc_use_as_value.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/inc_use_as_value.v:2:14: error: cannot use i++ as value +vlib/v/parser/tests/inc_use_as_value.vv:2:14: error: cannot use i++ as value 1 | fn main() { 2 | for i := 0; i++; i < 100 { | ^ diff --git a/vlib/v/parser/tests/interface_duplicate_method.out b/vlib/v/parser/tests/interface_duplicate_method.out index e15cd7b51c..a45c470819 100644 --- a/vlib/v/parser/tests/interface_duplicate_method.out +++ b/vlib/v/parser/tests/interface_duplicate_method.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/interface_duplicate_method.v:3:2: error: duplicate method `fun` +vlib/v/parser/tests/interface_duplicate_method.vv:3:2: error: duplicate method `fun` 1 | interface Abc { 2 | fun() 3 | fun() diff --git a/vlib/v/parser/tests/match_range_dotdot_err.out b/vlib/v/parser/tests/match_range_dotdot_err.out index d473b54c60..bc815ed9ed 100644 --- a/vlib/v/parser/tests/match_range_dotdot_err.out +++ b/vlib/v/parser/tests/match_range_dotdot_err.out @@ -1,4 +1,4 @@ -vlib/v/parser/tests/match_range_dotdot_err.v:3:4: error: match only supports inclusive (`...`) ranges, not exclusive (`..`) +vlib/v/parser/tests/match_range_dotdot_err.vv:3:4: error: match only supports inclusive (`...`) ranges, not exclusive (`..`) 1 | fn test_match() { 2 | match 5 { 3 | 0..10 { '0-9' } diff --git a/vlib/v/parser/tests/postfix_err.out b/vlib/v/parser/tests/postfix_err.out index 37f41a99dd..d83ccfab12 100644 --- a/vlib/v/parser/tests/postfix_err.out +++ b/vlib/v/parser/tests/postfix_err.out @@ -1,18 +1,18 @@ -vlib/v/parser/tests/postfix_err.v:5:10: warning: `++` operator can only be used as a statement +vlib/v/parser/tests/postfix_err.vv:5:10: warning: `++` operator can only be used as a statement 3 | fn test_postfix() { 4 | mut x := 1 5 | _ = (x++) | ^ 6 | x--, x-- // OK 7 | f(x++) -vlib/v/parser/tests/postfix_err.v:7:7: warning: `++` operator can only be used as a statement +vlib/v/parser/tests/postfix_err.vv:7:7: warning: `++` operator can only be used as a statement 5 | _ = (x++) 6 | x--, x-- // OK 7 | f(x++) | ^ 8 | a := [x] 9 | _ = a[x--] -vlib/v/parser/tests/postfix_err.v:9:11: warning: `--` operator can only be used as a statement +vlib/v/parser/tests/postfix_err.vv:9:11: warning: `--` operator can only be used as a statement 7 | f(x++) 8 | a := [x] 9 | _ = a[x--] diff --git a/vlib/v/pref/default.v b/vlib/v/pref/default.v index c39e31276b..c33f82473f 100644 --- a/vlib/v/pref/default.v +++ b/vlib/v/pref/default.v @@ -59,9 +59,9 @@ pub fn (mut p Preferences) fill_with_defaults() { if p.ccompiler == '' { p.ccompiler = default_c_compiler() } - p.is_test = p.path.ends_with('_test.v') || p.path.ends_with('.vv') + p.is_test = p.path.ends_with('_test.v') p.is_vsh = p.path.ends_with('.vsh') - p.is_script = p.is_vsh || p.path.ends_with('.v') + p.is_script = p.is_vsh || p.path.ends_with('.v') || p.path.ends_with('.vv') if p.third_party_option == '' { p.third_party_option = p.cflags $if !windows {