v/vlib/v/checker/tests
Nick Treleaven 629d43caf5
checker: warn when using `goto` outside of `unsafe` (#8741)
2021-02-15 15:48:24 +02:00
..
comptime_env all: support compile time `$env('ENV_VAR')` (#8456) 2021-01-31 19:22:42 +02:00
globals parser: fix fn args eol errors (#7222) 2020-12-10 11:56:08 +02:00
modules fmt: add a space after + operator/method overload (#7453) 2020-12-21 21:20:00 +02:00
returns all: remove `it` smartcast and replace with original variable name (#5764) 2020-07-09 17:14:14 +02:00
run tests: cleanup vlib/v/checker/tests/run ; add unused_variable_warning.vv 2020-09-12 12:33:17 +03:00
templates checker: remove vweb unused vars (#8180) 2021-01-21 11:09:19 +01:00
.gitattributes v.scanner: fix error line numbers when comments end with CRLF 2020-08-26 11:39:32 +03:00
.gitignore gen: named imported structs operator overloading and str methods (#6433) 2020-09-20 19:51:14 +02:00
a_test_file_with_0_test_fns_test.out all: support _test.vv files (to test _test.v errors/checks too) 2021-01-30 10:42:18 +02:00
a_test_file_with_0_test_fns_test.vv all: support _test.vv files (to test _test.v errors/checks too) 2021-01-30 10:42:18 +02:00
add_op_wrong_type_err.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
add_op_wrong_type_err.vv checker: merge add_op_wrong_type_err tests to just one (#7488) 2020-12-23 10:13:46 +02:00
alias_type_exists.out parser: require assign on type alias (#6477) 2020-09-25 12:02:32 +02:00
alias_type_exists.vv parser: require assign on type alias (#6477) 2020-09-25 12:02:32 +02:00
ambiguous_field_method_err.out all: reimplement struct embedding with methods (#7506) 2020-12-23 19:12:49 +01:00
ambiguous_field_method_err.vv all: reimplement struct embedding with methods (#7506) 2020-12-23 19:12:49 +01:00
ambiguous_function_call.out checker: merge ambiguous_function_call tests (#8388) 2021-01-28 15:53:54 +02:00
ambiguous_function_call.vv checker: merge ambiguous_function_call tests (#8388) 2021-01-28 15:53:54 +02:00
any_int_float_ban_err.out builtin: rename `any_*` -> `*_literal` - 2. part (#8032) 2021-01-11 22:58:15 +01:00
any_int_float_ban_err.vv builtin: rename `any_*` -> `*_literal` - 2. part (#8032) 2021-01-11 22:58:15 +01:00
array_builtin_redefinition.out checker: allow `map` method name (#7834) 2021-01-03 16:57:29 +01:00
array_builtin_redefinition.vv checker: allow `map` method name (#7834) 2021-01-03 16:57:29 +01:00
array_cmp_err.out checker: add error for arr1 <,>,>=,<= arr2 (#6243) 2020-08-28 11:08:07 +03:00
array_cmp_err.vv checker: add error for arr1 <,>,>=,<= arr2 (#6243) 2020-08-28 11:08:07 +03:00
array_declare_element_a.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
array_declare_element_a.vv parser: trigger declaration of array element as error 2020-06-20 14:30:03 +02:00
array_declare_element_b.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
array_declare_element_b.vv parser: trigger declaration of array element as error 2020-06-20 14:30:03 +02:00
array_declare_element_c.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
array_declare_element_c.vv parser: trigger declaration of array element as error 2020-06-20 14:30:03 +02:00
array_element_type.out checker: improve array literal element type mismatch error (#6825) 2020-11-16 00:41:24 +02:00
array_element_type.vv checker: improve array literal element type mismatch error (#6825) 2020-11-16 00:41:24 +02:00
array_filter_fn_err.out checker: merge array_filter_fn_err tests (#8506) 2021-02-03 11:27:11 +02:00
array_filter_fn_err.vv checker: merge array_filter_fn_err tests (#8506) 2021-02-03 11:27:11 +02:00
array_init_sum_type_without_init_value_and_len_err.out checker: disallow array sum types without default field (#6892) 2020-11-21 00:07:25 +01:00
array_init_sum_type_without_init_value_and_len_err.vv checker: disallow array sum types without default field (#6892) 2020-11-21 00:07:25 +01:00
array_insert_type_mismatch.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
array_insert_type_mismatch.vv checker: fix multi_array type mismatch check (#7486) 2020-12-23 08:05:44 +02:00
array_map_arg_mismatch.out checker: improve errors for `return` count mismatch (#8686) 2021-02-12 01:47:11 +02:00
array_map_arg_mismatch.vv checker: allow `map` method name (#7834) 2021-01-03 16:57:29 +01:00
array_map_fn_err.out checker: merge array_map_fn_err tests (#8507) 2021-02-03 11:26:26 +02:00
array_map_fn_err.vv checker: merge array_map_fn_err tests (#8507) 2021-02-03 11:26:26 +02:00
array_or_map_assign_err.out map: add `move` method (#8660) 2021-02-12 02:02:33 +02:00
array_or_map_assign_err.vv map: add `move` method (#8660) 2021-02-12 02:02:33 +02:00
array_prepend_type_mismatch.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
array_prepend_type_mismatch.vv checker: fix multi_array type mismatch check (#7486) 2020-12-23 08:05:44 +02:00
arrow_op_wrong_left_type_err_a.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
arrow_op_wrong_left_type_err_a.vv all: handle `<-` arrow token for channel operations (#6152) 2020-08-17 20:12:00 +02:00
arrow_op_wrong_left_type_err_b.out checker: add check_expected() which returns an optional error (#6623) 2020-10-15 17:30:36 +02:00
arrow_op_wrong_left_type_err_b.vv all: handle `<-` arrow token for channel operations (#6152) 2020-08-17 20:12:00 +02:00
arrow_op_wrong_right_type_err_a.out all: make type system use source name & cleanup storing name in fields 2020-12-06 14:55:08 +11:00
arrow_op_wrong_right_type_err_a.vv all: handle `<-` arrow token for channel operations (#6152) 2020-08-17 20:12:00 +02:00
arrow_op_wrong_right_type_err_b.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
arrow_op_wrong_right_type_err_b.vv all: handle `<-` arrow token for channel operations (#6152) 2020-08-17 20:12:00 +02:00
assign_expr_type_err_a.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
assign_expr_type_err_a.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
assign_expr_type_err_b.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
assign_expr_type_err_b.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
assign_expr_type_err_c.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
assign_expr_type_err_c.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
assign_expr_type_err_d.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
assign_expr_type_err_d.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
assign_expr_type_err_e.out checker: improve 'operator not defined on right operand type' error (#7185) 2020-12-07 18:37:17 +01:00
assign_expr_type_err_e.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
assign_expr_type_err_f.out checker: improve 'operator not defined on right operand type' error (#7185) 2020-12-07 18:37:17 +01:00
assign_expr_type_err_f.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
assign_expr_type_err_g.out checker: improve 'operator not defined on right operand type' error (#7185) 2020-12-07 18:37:17 +01:00
assign_expr_type_err_g.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
assign_expr_type_err_h.out checker: improve 'operator not defined on right operand type' error (#7185) 2020-12-07 18:37:17 +01:00
assign_expr_type_err_h.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
assign_expr_type_err_i.out checker: improve 'operator not defined on right operand type' error (#7185) 2020-12-07 18:37:17 +01:00
assign_expr_type_err_i.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
assign_expr_undefined_err_a.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
assign_expr_undefined_err_a.vv parser: fix self-referenced error 2020-05-25 11:31:04 +02:00
assign_expr_undefined_err_b.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
assign_expr_undefined_err_b.vv parser: fix self-referenced error 2020-05-25 11:31:04 +02:00
assign_expr_undefined_err_c.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
assign_expr_undefined_err_c.vv parser: fix self-referenced error 2020-05-25 11:31:04 +02:00
assign_expr_undefined_err_d.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
assign_expr_undefined_err_d.vv parser: fix self-referenced error 2020-05-25 11:31:04 +02:00
assign_expr_undefined_err_e.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
assign_expr_undefined_err_e.vv parser: check undefined variable of assign_expr 2020-05-29 17:38:40 +02:00
assign_expr_undefined_err_f.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
assign_expr_undefined_err_f.vv parser: check undefined variable of assign_expr 2020-05-29 17:38:40 +02:00
assign_expr_undefined_err_g.out parser: check assign_stmt of undefined variable (#8366) 2021-01-27 13:52:10 +01:00
assign_expr_undefined_err_g.vv parser: check assign_stmt of undefined variable (#8366) 2021-01-27 13:52:10 +01:00
assign_expr_undefined_err_h.out parser: make `v := f(v)' an undefined variable error (#8634) 2021-02-08 16:55:01 +02:00
assign_expr_undefined_err_h.vv parser: make `v := f(v)' an undefined variable error (#8634) 2021-02-08 16:55:01 +02:00
assign_expr_unresolved_variables_err_chain.out tests: cleanup vlib/v/checker/tests/run ; add unused_variable_warning.vv 2020-09-12 12:33:17 +03:00
assign_expr_unresolved_variables_err_chain.vv tests: cleanup vlib/v/checker/tests/run ; add unused_variable_warning.vv 2020-09-12 12:33:17 +03:00
assign_fn_call_on_left_side_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
assign_fn_call_on_left_side_err.vv checker: add a checker error for fn calls on left side of an assignment (#5993) 2020-07-29 18:33:00 +03:00
assign_multi_immutable_err.out checker: error if assigning to a function (#6581) 2020-10-09 00:48:39 +02:00
assign_multi_immutable_err.vv checker: error if assigning to a function (#6581) 2020-10-09 00:48:39 +02:00
assign_multi_mismatch.out checker: deny multi-value in a singe-value context (#8328) 2021-01-27 23:10:51 +02:00
assign_multi_mismatch.vv checker: deny multi-value in a singe-value context (#8328) 2021-01-27 23:10:51 +02:00
assign_mut.out checker: fix := test 2020-09-09 17:59:51 +02:00
assign_mut.vv checker: error on `mut name =` (#6247) 2020-08-28 20:07:32 +03:00
assign_sumtype2_err.out checker: add tests for assign sum type to non sum type error 2020-12-11 21:52:25 +11:00
assign_sumtype2_err.vv checker: add tests for assign sum type to non sum type error 2020-12-11 21:52:25 +11:00
assign_sumtype_err.out checker: add tests for assign sum type to non sum type error 2020-12-11 21:52:25 +11:00
assign_sumtype_err.vv checker: add tests for assign sum type to non sum type error 2020-12-11 21:52:25 +11:00
bin_lit_without_digit_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
bin_lit_without_digit_err.vv scanner: fix err pos related to num literal 2020-05-21 18:43:57 +02:00
bin_lit_wrong_digit_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
bin_lit_wrong_digit_err.vv scanner: fix err pos related to num literals 2020-05-21 16:20:36 +03:00
bit_op_wrong_left_type_err.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
bit_op_wrong_left_type_err.vv parser: `expression evaluated but not used` error 2020-06-16 11:06:53 +02:00
bit_op_wrong_right_type_err.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
bit_op_wrong_right_type_err.vv parser: `expression evaluated but not used` error 2020-06-16 11:06:53 +02:00
blank_ident_invalid_use.out checker: verify use of blank identifier (#6412) 2020-09-18 23:47:50 +02:00
blank_ident_invalid_use.vv checker: verify use of blank identifier (#6412) 2020-09-18 23:47:50 +02:00
blank_modify.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
blank_modify.vv parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
bool_string_cast_err.out checker: disallow string(bool) (#6863) 2020-11-17 21:23:17 +01:00
bool_string_cast_err.vv checker: disallow string(bool) (#6863) 2020-11-17 21:23:17 +01:00
c_fn_surplus_args.out checker: check number of C function arguments for some cases (#8444) 2021-01-30 18:33:36 +01:00
c_fn_surplus_args.vv checker: check number of C function arguments for some cases (#8444) 2021-01-30 18:33:36 +01:00
cannot_assign_array.out all: change fixed array init from `[1,2,3]!!` to `[1,2,3]!` (#8068) 2021-01-13 03:28:53 +01:00
cannot_assign_array.vv all: change fixed array init from `[1,2,3]!!` to `[1,2,3]!` (#8068) 2021-01-13 03:28:53 +01:00
cannot_cast_to_alias.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
cannot_cast_to_alias.vv checker: add alias cast type check (closes #6705) (#6709) 2020-11-02 01:17:35 +01:00
cannot_cast_to_struct.out checker: allow `Struct{...expr}` where `expr` is another struct type (#8495) 2021-02-01 20:08:25 +01:00
cannot_cast_to_struct.vv checker: prevent from casting non-struct to struct (#6143) 2020-08-17 11:19:44 +02:00
cast_err.out checker: add alias cast type check (closes #6705) (#6709) 2020-11-02 01:17:35 +01:00
cast_err.vv checker: disallow casting to bool, use `some_int != 0` instead (#6138) 2020-08-19 14:37:55 +02:00
cast_string_err.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
cast_string_err.vv checker: check string(1) cast error 2020-05-06 12:05:24 +02:00
cast_string_with_byte_err.out checker: add alias cast type check (closes #6705) (#6709) 2020-11-02 01:17:35 +01:00
cast_string_with_byte_err.vv checker: prevent string(byte), suggest byte.str() instead 2020-07-11 17:09:22 +03:00
chan_mut.out checker: fix typos in chan (#6539) 2020-10-03 06:59:30 +02:00
chan_mut.vv checker/channels: check `mut`/`&` state of transmitted objects (#6315) 2020-09-06 21:24:41 +02:00
chan_ref.out sync: don't force `Mutex` and `Semaphore` to be reference (#8331) 2021-01-29 20:52:14 +02:00
chan_ref.vv sync: don't force `Mutex` and `Semaphore` to be reference (#8331) 2021-01-29 20:52:14 +02:00
check_generic_int_init.out checker/gen: fix generic struct init (#8322) 2021-02-03 00:42:00 +11:00
check_generic_int_init.vv checker/gen: fix generic struct init (#8322) 2021-02-03 00:42:00 +11:00
comparing_typesymbol_to_a_type_should_not_compile.out parser: warn about old use of `typeof` (#7923) 2021-01-07 20:32:02 +01:00
comparing_typesymbol_to_a_type_should_not_compile.vv parser: warn about old use of `typeof` (#7923) 2021-01-07 20:32:02 +01:00
comptime_call_method.out checker: check s.$method(arg) argument is []string (#8455) 2021-01-31 15:28:23 +01:00
comptime_call_method.vv checker: check s.$method(arg) argument is []string (#8455) 2021-01-31 15:28:23 +01:00
comptime_call_no_unused_var.out tests: fix weird CI failure with error details (#8449) 2021-01-30 18:53:39 +02:00
comptime_call_no_unused_var.vv checker: fix compile-time call with string identifier expression (#8415) 2021-01-30 15:24:16 +01:00
comptime_field_selector_not_in_for_err.out parser: add warning for s.$field.name without brackets (#8411) 2021-01-30 12:56:10 +01:00
comptime_field_selector_not_in_for_err.vv parser: add warning for s.$field.name without brackets (#8411) 2021-01-30 12:56:10 +01:00
comptime_field_selector_not_name_err.out parser: add warning for s.$field.name without brackets (#8411) 2021-01-30 12:56:10 +01:00
comptime_field_selector_not_name_err.vv parser: add warning for s.$field.name without brackets (#8411) 2021-01-30 12:56:10 +01:00
const_define_in_function_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
const_define_in_function_err.vv parser: error for consts in fns 2020-05-13 18:39:02 +02:00
const_field_add_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
const_field_add_err.vv checker: prevent C error on const mutation 2020-05-11 11:09:58 +03:00
const_field_dec_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
const_field_dec_err.vv checker: prevent C error on const mutation 2020-05-11 11:09:58 +03:00
const_field_inc_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
const_field_inc_err.vv checker: prevent C error on const mutation 2020-05-11 11:09:58 +03:00
const_field_name_duplicate_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
const_field_name_duplicate_err.vv checker: check duplicate consts 2020-04-30 12:17:31 +02:00
const_field_name_snake_case.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
const_field_name_snake_case.vv all: unify const names to snake_case 2020-05-22 17:36:09 +02:00
const_field_sub_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
const_field_sub_err.vv checker: prevent C error on const mutation 2020-05-11 11:09:58 +03:00
ctdefine.out checker: fix ctdefine check in non-main modules (#8332) 2021-01-27 13:54:33 +01:00
ctdefine.vv checker: fix ctdefine check in non-main modules (#8332) 2021-01-27 13:54:33 +01:00
custom_comptime_define_error.mysymbol.run.out checker: fix comptime custom defines usages, add tests 2020-10-24 15:06:51 +03:00
custom_comptime_define_error.out checker: initial support for evaluating expressions at compile time (#7248) 2020-12-11 04:46:06 +01:00
custom_comptime_define_error.vv checker: fix comptime custom defines usages, add tests 2020-10-24 15:06:51 +03:00
custom_comptime_define_if_flag.mydebug.run.out checker: fix comptime custom defines usages, add tests 2020-10-24 15:06:51 +03:00
custom_comptime_define_if_flag.nodebug.run.out checker: fix comptime custom defines usages, add tests 2020-10-24 15:06:51 +03:00
custom_comptime_define_if_flag.out checker: fix comptime custom defines usages, add tests 2020-10-24 15:06:51 +03:00
custom_comptime_define_if_flag.vv checker: fix comptime custom defines usages, add tests 2020-10-24 15:06:51 +03:00
dec_lit_wrong_digit_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
dec_lit_wrong_digit_err.vv scanner: fix err pos related to num literal 2020-05-21 18:43:57 +02:00
decompose_type_err.out parser: change array decompose syntax (#7965) 2021-01-09 22:48:23 +01:00
decompose_type_err.vv parser: change array decompose syntax (#7965) 2021-01-09 22:48:23 +01:00
div_mod_by_cast_zero_int_err.out checker: check div/mod by zero (#7256) 2020-12-11 04:44:07 +01:00
div_mod_by_cast_zero_int_err.vv checker: check div/mod by zero (#7256) 2020-12-11 04:44:07 +01:00
div_op_wrong_type_err.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
div_op_wrong_type_err.vv checker: merge div_op_wrong_type_err tests to just one (#7493) 2020-12-23 10:14:08 +02:00
division_by_cast_zero_float_err.out checker: check div/mod by zero (#7256) 2020-12-11 04:44:07 +01:00
division_by_cast_zero_float_err.vv checker: check div/mod by zero (#7256) 2020-12-11 04:44:07 +01:00
division_by_zero_float_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
division_by_zero_float_err.vv Revert "parser: advanced division by zero check (#5629)" 2020-07-03 22:30:51 +02:00
division_by_zero_int_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
division_by_zero_int_err.vv checker: add `1/0x0 1/0b0..` division by zero check (#5694) 2020-07-06 12:32:00 +02:00
enum_as_int_err.out checker: disallow comparison between enum and int (#7886) 2021-01-08 17:41:52 +01:00
enum_as_int_err.vv checker: disallow comparison between enum and int (#7886) 2021-01-08 17:41:52 +01:00
enum_empty.out checker: do not allow empty enums (#7848) 2021-01-05 01:46:32 +01:00
enum_empty.vv checker: do not allow empty enums (#7848) 2021-01-05 01:46:32 +01:00
enum_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
enum_err.vv parser: uniform handling of enum field format 2020-04-30 12:18:16 +02:00
enum_field_name_duplicate_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
enum_field_name_duplicate_err.vv checker: check enum field name duplicate 2020-04-30 09:34:18 +02:00
enum_field_overflow.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
enum_field_overflow.vv checker: check for enum value duplicates/overflow (#5659) 2020-07-04 18:28:01 +03:00
enum_field_value_duplicate_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
enum_field_value_duplicate_err.vv checker: check for enum value duplicates/overflow (#5659) 2020-07-04 18:28:01 +03:00
enum_field_value_overflow.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
enum_field_value_overflow.vv checker: check for enum value duplicates/overflow (#5659) 2020-07-04 18:28:01 +03:00
enum_op_err.out checker: only allow `!=` and `==` for enum (#7985) 2021-01-10 12:26:31 +02:00
enum_op_err.vv checker: only allow `!=` and `==` for enum (#7985) 2021-01-10 12:26:31 +02:00
enum_single_letter.out parser: dont allow single letter enums (#6526) 2020-10-01 23:29:49 +03:00
enum_single_letter.vv parser: dont allow single letter enums (#6526) 2020-10-01 23:29:49 +03:00
eq_ne_op_wrong_type_err.out checker: make `[] == ArrayAlias([])` an error (#8562) 2021-02-05 16:49:40 +01:00
eq_ne_op_wrong_type_err.vv checker: make `[] == ArrayAlias([])` an error (#8562) 2021-02-05 16:49:40 +01:00
error_with_comment_with_crlf_ending.out v.scanner: fix error line numbers when comments end with CRLF 2020-08-26 11:39:32 +03:00
error_with_comment_with_crlf_ending.vv v.scanner: fix error line numbers when comments end with CRLF 2020-08-26 11:39:32 +03:00
error_with_comment_with_lf_ending.out v.scanner: fix error line numbers when comments end with CRLF 2020-08-26 11:39:32 +03:00
error_with_comment_with_lf_ending.vv v.scanner: fix error line numbers when comments end with CRLF 2020-08-26 11:39:32 +03:00
error_with_several_comments_with_crlf_ending.out checker: error on `mut name =` (#6247) 2020-08-28 20:07:32 +03:00
error_with_several_comments_with_crlf_ending.vv tests: add another test for 47f59d3 2020-08-26 11:46:29 +03:00
expression_should_return_an_option.out checker: add check preventing `if x:=non_optional() {}` 2020-11-02 01:58:07 +02:00
expression_should_return_an_option.vv checker: add check preventing `if x:=non_optional() {}` 2020-11-02 01:58:07 +02:00
filter_on_non_arr_err.out checker: check filter, map and sort left type (#6952) 2020-11-26 11:28:54 +01:00
filter_on_non_arr_err.vv checker: check filter, map and sort left type (#6952) 2020-11-26 11:28:54 +01:00
fixed_array_size_err.out checker: check fixed array size (#8224) 2021-01-20 23:17:49 +02:00
fixed_array_size_err.vv checker: check fixed array size (#8224) 2021-01-20 23:17:49 +02:00
float_lit_exp_not_integer_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
float_lit_exp_not_integer_err.vv scanner: fix err pos related to num literals 2020-05-21 16:20:36 +03:00
float_lit_exp_without_digit_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
float_lit_exp_without_digit_err.vv scanner: fix err pos related to num literals 2020-05-21 16:20:36 +03:00
float_lit_too_many_points_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
float_lit_too_many_points_err.vv scanner: fix err pos related to num literals 2020-05-21 16:20:36 +03:00
float_modulo_err.out checker: add alias cast type check (closes #6705) (#6709) 2020-11-02 01:17:35 +01:00
float_modulo_err.vv checker: add more checks for modulo 2020-05-16 15:32:46 +02:00
fn_args.out checker,builder: rename `details:` to `Details:` 2021-01-30 10:20:09 +02:00
fn_args.vv all: change fixed array init from `[1,2,3]!!` to `[1,2,3]!` (#8068) 2021-01-13 03:28:53 +01:00
fn_call_no_body.out checker: make a calling no-body function a checker error (#8265) 2021-01-26 11:19:48 +01:00
fn_call_no_body.vv checker: make a calling no-body function a checker error (#8265) 2021-01-26 11:19:48 +01:00
fn_type_exists.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
fn_type_exists.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
fn_var.out checker: check the fn decl for anon fns too (#7529) 2021-01-29 23:11:05 +02:00
fn_var.vv checker: make it an error, to use ident outside of anon fn (#8232) 2021-01-22 09:24:49 +02:00
for_in_index_optional.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
for_in_index_optional.vv checker: fix for_in_index type error 2020-06-05 09:44:25 +02:00
for_in_index_type.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
for_in_index_type.vv checker: fix for_in_index type error 2020-06-05 09:44:25 +02:00
for_in_map_one_variable_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
for_in_map_one_variable_err.vv checker: check for_in_map using one variable error 2020-05-10 02:28:43 +02:00
for_in_mut_val_type.out parser: fix map_init position (#8293) 2021-01-23 13:33:19 +01:00
for_in_mut_val_type.vv checker: check for mut val in immutable obj (#8285) 2021-01-23 10:40:17 +01:00
for_in_range_not_match_type.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
for_in_range_not_match_type.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
for_in_range_string_type.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
for_in_range_string_type.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
for_match_err.out parser: disallow match expr at certain places (#6490) 2020-10-03 16:30:58 +03:00
for_match_err.vv parser: disallow match expr at certain places (#6490) 2020-10-03 16:30:58 +03:00
function_arg_mutable_err.out parser: support `mut:` section in the interface methods, and a mut interface fn modifier (#8092) 2021-01-22 10:02:28 +02:00
function_arg_mutable_err.vv parser: fix function mutable argument error 2020-06-03 12:28:16 +02:00
function_arg_redefinition.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
function_arg_redefinition.vv parser: correct fn arg position in error message 2020-06-03 08:42:02 +03:00
function_count_of_args_mismatch_err.out checker: fix panic when calling generic function with too few args (#8416) 2021-01-29 20:14:22 +02:00
function_count_of_args_mismatch_err.vv checker: fix panic when calling generic function with too few args (#8416) 2021-01-29 20:14:22 +02:00
function_missing_return_type.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
function_missing_return_type.vv checker: check missing return values in functions (#5803) 2020-07-11 16:30:49 +02:00
function_variadic_arg_non_final.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
function_variadic_arg_non_final.vv parser: correct fn arg position in error message 2020-06-03 08:42:02 +03:00
function_wrong_arg_type.out all: re-implement variadics using arrays & implement array decomposition to varg (#7689) 2020-12-29 16:14:08 +01:00
function_wrong_arg_type.vv checker: apply stricter type checks to function args and return types 2020-06-01 21:15:59 +02:00
function_wrong_return_type.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
function_wrong_return_type.vv checker: apply stricter type checks to function args and return types 2020-06-01 21:15:59 +02:00
generics_non_generic_fn_called_like_a_generic_one.out checker: add a check for `x := math.sin<f64>(0)` 2020-11-15 11:51:12 +02:00
generics_non_generic_fn_called_like_a_generic_one.vv checker: add a check for `x := math.sin<f64>(0)` 2020-11-15 11:51:12 +02:00
globals_error.out syntax: new global variable declaration syntax (#6540) 2020-10-03 07:03:44 +02:00
globals_error.run.out compiler: restore support for --enable-globals flag, and add tests. 2020-05-14 08:43:12 +03:00
globals_error.vv syntax: new global variable declaration syntax (#6540) 2020-10-03 07:03:44 +02:00
go_expr.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
go_expr.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
go_mut_arg.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
go_mut_arg.vv checker: forbid non-reference mut arg or receiver of go function 2020-06-26 23:31:38 +02:00
go_mut_receiver.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
go_mut_receiver.vv checker: forbid non-reference mut arg or receiver of go function 2020-06-26 23:31:38 +02:00
goto_label.out checker: warn when using `goto` outside of `unsafe` (#8741) 2021-02-15 15:48:24 +02:00
goto_label.vv checker: warn when using `goto` outside of `unsafe` (#8741) 2021-02-15 15:48:24 +02:00
heap_struct.out all: rename `[ref_only]` -> `[heap]` (#8718) 2021-02-13 16:52:01 +02:00
heap_struct.vv all: rename `[ref_only]` -> `[heap]` (#8718) 2021-02-13 16:52:01 +02:00
hex_lit_without_digit_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
hex_lit_without_digit_err.vv scanner: fix err pos related to num literals 2020-05-21 16:20:36 +03:00
hex_lit_wrong_digit_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
hex_lit_wrong_digit_err.vv scanner: fix err pos related to num literal 2020-05-21 18:43:57 +02:00
if_expr_last_stmt.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
if_expr_last_stmt.vv parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
if_expr_mismatch.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
if_expr_mismatch.vv gen: if expressions with multiple statements 2020-05-14 17:15:25 +02:00
if_expr_no_else.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
if_expr_no_else.vv parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
if_match_expr.out parser: return incomplete selector expr stmt (#7465) 2020-12-22 13:00:23 +01:00
if_match_expr.vv checker: don't error if last statement in match branch produces a value (#6523) 2020-10-02 09:33:04 +02:00
if_match_expr_err.out parser: disallow match expr at certain places (#6490) 2020-10-03 16:30:58 +03:00
if_match_expr_err.vv parser: disallow match expr at certain places (#6490) 2020-10-03 16:30:58 +03:00
if_match_result.out checker: fix panic on match expression without results (#6597) 2020-10-10 15:42:40 +02:00
if_match_result.vv checker: fix panic on match expression without results (#6597) 2020-10-10 15:42:40 +02:00
if_non_bool_cond.out checker: report correct position for non-bool cond error (#8735) 2021-02-14 19:19:41 +01:00
if_non_bool_cond.vv checker: reject void type condition (#8737) 2021-02-14 07:33:24 +01:00
immutable_arg.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
immutable_arg.vv checker: check if mut function arg is declared as mut (#5579) 2020-06-30 14:19:22 +02:00
immutable_array_field_assign.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
immutable_array_field_assign.vv all: fix struct names error 2020-05-27 19:12:34 +03:00
immutable_array_field_shift.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
immutable_array_field_shift.vv all: fix struct names error 2020-05-27 19:12:34 +03:00
immutable_array_struct_assign.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
immutable_array_struct_assign.vv all: fix struct names error 2020-05-27 19:12:34 +03:00
immutable_array_struct_shift.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
immutable_array_struct_shift.vv all: fix struct names error 2020-05-27 19:12:34 +03:00
immutable_array_var.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
immutable_array_var.vv checker: check array and fields mutability 2020-04-27 22:53:26 +02:00
immutable_field.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
immutable_field.vv all: fix struct names error 2020-05-27 19:12:34 +03:00
immutable_field_postfix.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
immutable_field_postfix.vv all: fix struct names error 2020-05-27 19:12:34 +03:00
immutable_interface_field.out checker: add mutability checks for interface fields; add tests (#8312) 2021-01-24 22:11:17 +01:00
immutable_interface_field.vv checker: add mutability checks for interface fields; add tests (#8312) 2021-01-24 22:11:17 +01:00
immutable_map.out map: add `move` method (#8660) 2021-02-12 02:02:33 +02:00
immutable_map.vv map: add `move` method (#8660) 2021-02-12 02:02:33 +02:00
immutable_rec.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
immutable_rec.vv checker: check if mut function arg is declared as mut (#5579) 2020-06-30 14:19:22 +02:00
immutable_struct_postfix.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
immutable_struct_postfix.vv all: fix struct names error 2020-05-27 19:12:34 +03:00
immutable_var.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
immutable_var.vv checker: check array and fields mutability 2020-04-27 22:53:26 +02:00
immutable_var_postfix.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
immutable_var_postfix.vv checker: check variable mutability for postfix exprs 2020-04-28 11:20:19 +02:00
import_duplicate_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
import_duplicate_err.vv checker: check import duplicates 2020-04-30 09:33:12 +02:00
import_middle_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
import_middle_err.vv parser: check `import` in the middle of file error 2020-05-10 07:47:20 +03:00
import_mod_as_mod_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
import_mod_as_mod_err.vv parser: add an error for `import mod.sub as mod` and `import mod as mod` (#6194) 2020-08-23 02:12:25 +02:00
import_mod_sub_as_sub_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
import_mod_sub_as_sub_err.vv parser: add an error for `import mod.sub as mod` and `import mod as mod` (#6194) 2020-08-23 02:12:25 +02:00
import_multiple_modules_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
import_multiple_modules_err.vv parser: check for import errors 2020-05-08 16:01:54 +03:00
import_not_found_err.out builder: show file:line when import fails (#8537) 2021-02-04 09:09:54 +02:00
import_not_found_err.vv parser: warning about unused imports 2020-05-14 17:14:24 +02:00
import_not_same_line_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
import_not_same_line_err.vv parser: check for import errors 2020-05-08 16:01:54 +03:00
import_symbol_const_private_err.out checker: add check for using a private const in another module (#8501) 2021-02-03 10:17:13 +02:00
import_symbol_const_private_err.vv checker: add check for using a private const in another module (#8501) 2021-02-03 10:17:13 +02:00
import_symbol_empty.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
import_symbol_empty.vv all: import individual symbols feature (#5872) 2020-07-18 21:34:38 +02:00
import_symbol_fn_err.out all: change the way import symbols work & support consts (#7182) 2020-12-07 19:13:03 +02:00
import_symbol_fn_err.vv all: import individual symbols feature (#5872) 2020-07-18 21:34:38 +02:00
import_symbol_fn_private_err.out checker: tweak the import private function message a little 2020-12-07 19:22:37 +02:00
import_symbol_fn_private_err.vv all: change the way import symbols work & support consts (#7182) 2020-12-07 19:13:03 +02:00
import_symbol_invalid.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
import_symbol_invalid.vv all: import individual symbols feature (#5872) 2020-07-18 21:34:38 +02:00
import_symbol_type_err.out all: change the way import symbols work & support consts (#7182) 2020-12-07 19:13:03 +02:00
import_symbol_type_err.vv all: import individual symbols feature (#5872) 2020-07-18 21:34:38 +02:00
import_symbol_type_private_err.out all: change the way import symbols work & support consts (#7182) 2020-12-07 19:13:03 +02:00
import_symbol_type_private_err.vv all: change the way import symbols work & support consts (#7182) 2020-12-07 19:13:03 +02:00
import_symbol_unclosed.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
import_symbol_unclosed.vv all: import individual symbols feature (#5872) 2020-07-18 21:34:38 +02:00
import_syntax_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
import_syntax_err.vv parser: check for import errors 2020-05-08 16:01:54 +03:00
import_unused_warning.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
import_unused_warning.vv parser: warning about unused imports 2020-05-14 17:14:24 +02:00
in_mismatch_type.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
in_mismatch_type.vv checker: more checks for in and !in 2020-05-17 17:03:32 +02:00
incorrect_for_in_name_variable.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
incorrect_for_in_name_variable.vv checker: validate loop var names (#5677) 2020-07-05 15:27:37 +02:00
incorrect_name_alias_type.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
incorrect_name_alias_type.vv checker: check incorrect names 2020-05-16 16:12:23 +02:00
incorrect_name_const.out checker: check incorrect names 2020-05-16 16:12:23 +02:00
incorrect_name_const.vv checker: check incorrect names 2020-05-16 16:12:23 +02:00
incorrect_name_enum.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
incorrect_name_enum.vv checker: check incorrect names 2020-05-16 16:12:23 +02:00
incorrect_name_enum_field.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
incorrect_name_enum_field.vv checker: check incorrect names 2020-05-16 16:12:23 +02:00
incorrect_name_fn_type.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
incorrect_name_fn_type.vv checker: check incorrect names 2020-05-16 16:12:23 +02:00
incorrect_name_function.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
incorrect_name_function.vv checker: check incorrect names 2020-05-16 16:12:23 +02:00
incorrect_name_interface.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
incorrect_name_interface.vv checker: check incorrect names 2020-05-16 16:12:23 +02:00
incorrect_name_interface_method.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
incorrect_name_interface_method.vv checker: check incorrect names 2020-05-16 16:12:23 +02:00
incorrect_name_module.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
incorrect_name_module.vv checker: check incorrect names 2020-05-16 16:12:23 +02:00
incorrect_name_struct.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
incorrect_name_struct.vv checker: check incorrect names 2020-05-16 16:12:23 +02:00
incorrect_name_struct_field.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
incorrect_name_struct_field.vv checker: check incorrect names 2020-05-16 16:12:23 +02:00
incorrect_name_sum_type.out gen: implement type_name method for sum type instances (#6802) 2020-11-14 13:59:03 +02:00
incorrect_name_sum_type.vv gen: implement type_name method for sum type instances (#6802) 2020-11-14 13:59:03 +02:00
incorrect_name_variable.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
incorrect_name_variable.vv parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
index_expr.out parser: parse `-1` and `-13.3` as number literals (#8321) 2021-01-24 22:09:51 +01:00
index_expr.vv checker: make negative literal index a checker error (#8242) 2021-01-21 13:27:16 +02:00
infix_err.out parser: display correct position on boolean expression error (#8563) 2021-02-05 16:52:35 +01:00
infix_err.vv parser: display correct position on boolean expression error (#8563) 2021-02-05 16:52:35 +01:00
int_modulo_by_zero_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
int_modulo_by_zero_err.vv checker: add more checks for modulo 2020-05-16 15:32:46 +02:00
interface_implementing_interface.out checker: make implementing an interface with another interface an error (#8398) 2021-01-29 00:41:59 +01:00
interface_implementing_interface.vv checker: make implementing an interface with another interface an error (#8398) 2021-01-29 00:41:59 +01:00
interpolation_recursive_str_err.out checker: fix interpolation recursive str (fix #1905) (#7141) 2020-12-05 21:41:54 +01:00
interpolation_recursive_str_err.vv checker: fix interpolation recursive str (fix #1905) (#7141) 2020-12-05 21:41:54 +01:00
invert_other_types_bits_error.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
invert_other_types_bits_error.vv checker: add checks and test for ~ operator 2020-06-12 12:05:20 +02:00
is_type_invalid.out cgen: fix `x.interface_field = value_implementing_interface` (closes #7620) 2020-12-27 19:12:39 +02:00
is_type_invalid.vv checker: check type in `is` InfixExpr (#6407) 2020-09-18 01:01:05 +02:00
is_type_not_exist.out checker, cgen: allow using literals as `int` and `f64` for sum types (#7864) 2021-01-04 20:48:13 +02:00
is_type_not_exist.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
labelled_break_continue.out checker: check labelled break/continue is inside a matching `for` loop (#6910) 2020-11-22 20:51:07 +01:00
labelled_break_continue.vv checker: check labelled break/continue is inside a matching `for` loop (#6910) 2020-11-22 20:51:07 +01:00
left_shift_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
left_shift_err.vv checker: check array and fields mutability 2020-04-27 22:53:26 +02:00
lock_already_locked.out all: make `lock` and `rlock` dead lock free :-) (#8534) 2021-02-03 15:16:52 +01:00
lock_already_locked.vv checker, cgen: checks for shared/lock, first autolock (#5815) 2020-07-13 12:19:28 +02:00
lock_already_rlocked.out all: make `lock` and `rlock` dead lock free :-) (#8534) 2021-02-03 15:16:52 +01:00
lock_already_rlocked.vv checker, cgen: checks for shared/lock, first autolock (#5815) 2020-07-13 12:19:28 +02:00
lock_const.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
lock_const.vv checker, cgen: checks for shared/lock, first autolock (#5815) 2020-07-13 12:19:28 +02:00
lock_needed.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
lock_needed.vv checker, cgen: checks for shared/lock, first autolock (#5815) 2020-07-13 12:19:28 +02:00
lock_nonshared.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
lock_nonshared.vv checker, cgen: checks for shared/lock, first autolock (#5815) 2020-07-13 12:19:28 +02:00
main_and_script_err.out checker: prompt error on script expression while inside a file with main (#6400) 2020-09-18 01:14:14 +02:00
main_and_script_err.vv checker: prompt error on script expression while inside a file with main (#6400) 2020-09-18 01:14:14 +02:00
main_args_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
main_args_err.vv checker: make sure `main` has no args and doesn't return 2020-04-29 09:19:46 +02:00
main_called_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
main_called_err.vv checker: main function called error 2020-04-28 07:21:50 +02:00
main_no_body_err.out checker: make the no-body main function a checker error (#8211) 2021-01-23 10:30:26 +02:00
main_no_body_err.vv checker: make the no-body main function a checker error (#8211) 2021-01-23 10:30:26 +02:00
main_return_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
main_return_err.vv checker: make sure `main` has no args and doesn't return 2020-04-29 09:19:46 +02:00
map_init_key_duplicate_err.out parser: allow integer and rune keys for map literal (#7756) 2021-01-01 17:23:32 +01:00
map_init_key_duplicate_err.vv parser: allow integer and rune keys for map literal (#7756) 2021-01-01 17:23:32 +01:00
map_init_wrong_type.out parser: fix map_init position (#8293) 2021-01-23 13:33:19 +01:00
map_init_wrong_type.vv parser: allow integer and rune keys for map literal (#7756) 2021-01-01 17:23:32 +01:00
map_ops.out parser: remove the 'non-string keys are work in progress' warning 2021-01-22 12:25:17 +02:00
map_ops.vv checker: support integer and voidptr key types for maps (#7503) 2020-12-27 14:18:46 +01:00
map_unknown_value.out all: better type error positions (#6345) 2020-09-11 14:37:14 +02:00
map_unknown_value.vv checker: add checks for map key/value types (#6283) 2020-09-04 23:59:54 +02:00
match_duplicate_branch.out parser: fix sumtype match with array type (#7939) 2021-01-07 20:12:35 +01:00
match_duplicate_branch.vv parser: force `...` rather than `..` in matches for inclusive ranges (#5852) 2020-07-17 11:30:21 +03:00
match_else_last_expr.out parser: fix sumtype match with array type (#7939) 2021-01-07 20:12:35 +01:00
match_else_last_expr.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
match_expr_and_expected_type_error.out cgen: union sum types implementation (#6745) 2020-11-11 09:18:15 +01:00
match_expr_and_expected_type_error.vv checker: improve error message for match branch type mismatch (#6588) 2020-10-09 16:11:11 +02:00
match_expr_else.out parser: fix sumtype match with array type (#7939) 2021-01-07 20:12:35 +01:00
match_expr_else.vv ci: fix failing tests for compiler_errors_test.v 2020-08-13 13:16:41 +03:00
match_invalid_type.out cgen: fix `x.interface_field = value_implementing_interface` (closes #7620) 2020-12-27 19:12:39 +02:00
match_invalid_type.vv checker: improve error message for match branch type mismatch (#6588) 2020-10-09 16:11:11 +02:00
match_return_mismatch_type_err.out checker: check match return mismatch type (fix #6826) (#7109) 2020-12-03 21:14:23 +02:00
match_return_mismatch_type_err.vv checker: check match return mismatch type (fix #6826) (#7109) 2020-12-03 21:14:23 +02:00
match_sumtype_multiple_types.out parser: fix position offset by 1 (#7099) 2020-12-03 11:25:06 +02:00
match_sumtype_multiple_types.vv all: remove old sumtype code (#6937) 2020-11-24 17:55:24 +01:00
match_undefined_cond.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
match_undefined_cond.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
method_array_slice.out checker: error on a.slice(x,y) outside `builtin` 2021-01-19 15:55:52 +02:00
method_array_slice.vv checker: error on a.slice(x,y) outside `builtin` 2021-01-19 15:55:52 +02:00
method_generic_infer_err.out checker: fix panic in generic methods (#7944) 2021-01-08 00:50:59 +01:00
method_generic_infer_err.vv checker: fix panic in generic methods (#7944) 2021-01-08 00:50:59 +01:00
method_op_alias_err.out checker: improve message and positioning for operator overloading (#8133) 2021-01-17 03:37:44 +01:00
method_op_alias_err.vv cgen: allow assignment operators for type aliases (#8086) 2021-01-15 02:27:19 +01:00
method_op_err.out all: only allow defining `==` and `<` and auto generate `!=`, `>`, `>=` and `<=` (#8520) 2021-02-03 15:18:38 +01:00
method_op_err.vv all: only allow defining `==` and `<` and auto generate `!=`, `>`, `>=` and `<=` (#8520) 2021-02-03 15:18:38 +01:00
method_wrong_arg_type.out all: re-implement variadics using arrays & implement array decomposition to varg (#7689) 2020-12-29 16:14:08 +01:00
method_wrong_arg_type.vv checker: fix passing enum to a method expecting string 2020-07-28 13:50:40 +03:00
minus_op_wrong_type_err.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
minus_op_wrong_type_err.vv checker: merge minus_op_wrong_type_err tests to just one (#7489) 2020-12-23 10:16:04 +02:00
mismatched_ptr_op_ptr.out checker: modify error messages for ptrs (#6325) 2020-09-09 10:07:58 +02:00
mismatched_ptr_op_ptr.vv checker: modify error messages for ptrs (#6325) 2020-09-09 10:07:58 +02:00
missing_c_lib_header_1.out cgen: produce cleaner error on missing C headers (with optional explanation) (#6637) 2020-10-17 18:27:06 +03:00
missing_c_lib_header_1.vv cgen: produce cleaner error on missing C headers (with optional explanation) (#6637) 2020-10-17 18:27:06 +03:00
missing_c_lib_header_with_explanation_2.out cgen: produce cleaner error on missing C headers (with optional explanation) (#6637) 2020-10-17 18:27:06 +03:00
missing_c_lib_header_with_explanation_2.vv cgen: produce cleaner error on missing C headers (with optional explanation) (#6637) 2020-10-17 18:27:06 +03:00
mod_op_wrong_type_err.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
mod_op_wrong_type_err.vv checker: merge mod_op_wrong_type_err tests to just one (#7490) 2020-12-23 10:15:25 +02:00
module_multiple_names_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
module_multiple_names_err.vv parser: check for module statement errors 2020-05-10 02:28:56 +02:00
module_not_at_same_line_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
module_not_at_same_line_err.vv parser: check for module statement errors 2020-05-10 02:28:56 +02:00
module_syntax_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
module_syntax_err.vv parser: check for module statement errors 2020-05-10 02:28:56 +02:00
mul_op_wrong_type_err.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
mul_op_wrong_type_err.vv checker: merge mul_op_wrong_type_err tests to just one (#7491) 2020-12-23 10:14:32 +02:00
multi_const_field_name_duplicate_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
multi_const_field_name_duplicate_err.vv checker: check duplicate consts 2020-04-30 12:17:31 +02:00
multi_names_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
multi_names_err.vv parser: multiple names error 2020-05-01 18:18:58 +02:00
mut_arg.out checker: simplify argument qualifier errors (#6321) 2020-09-08 19:34:17 +02:00
mut_arg.vv checker: simplify argument qualifier errors (#6321) 2020-09-08 19:34:17 +02:00
mut_args_warning.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
mut_args_warning.vv parser: check function argument mutable syntax 2020-06-04 15:20:43 +02:00
mut_array_get_element_address_err.out checker: add is_mut check for disallowing taking address of map's key and array's element outside unsafe (#6573) 2020-10-08 09:37:18 +03:00
mut_array_get_element_address_err.vv checker: add is_mut check for disallowing taking address of map's key and array's element outside unsafe (#6573) 2020-10-08 09:37:18 +03:00
mut_int.out parser: support `mut:` section in the interface methods, and a mut interface fn modifier (#8092) 2021-01-22 10:02:28 +02:00
mut_int.vv checker: fix mut int check 2020-06-03 10:36:56 +02:00
mut_map_get_value_address_err.out checker: never allow taking the address of map values 2020-12-20 07:55:23 +01:00
mut_map_get_value_address_err.vv checker: add is_mut check for disallowing taking address of map's key and array's element outside unsafe (#6573) 2020-10-08 09:37:18 +03:00
mut_receiver.out parser: improve the position of mut receiver warning / error (#8240) 2021-01-22 09:38:37 +02:00
mut_receiver.vv parser: improve the position of mut receiver warning / error (#8240) 2021-01-22 09:38:37 +02:00
nested_aliases.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
nested_aliases.vv checker: forbid aliasing an alias (#6118) 2020-08-16 04:53:16 +02:00
no_interface_instantiation_a.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
no_interface_instantiation_a.vv parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
no_interface_instantiation_b.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
no_interface_instantiation_b.vv checker: prevent interface instantiation 2020-05-13 19:20:15 +02:00
no_interface_instantiation_c.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
no_interface_instantiation_c.vv checker: prevent interface instantiation 2020-05-13 19:20:15 +02:00
no_interface_str.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
no_interface_str.vv checker: add error when interface i, without a .str() method, have i.str() called (#5788) 2020-07-10 22:47:29 +03:00
no_main_mod.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
no_main_mod.vv checker: verify that there is a main module 2020-05-06 00:09:46 +02:00
no_main_println_err.out parser: refactor args count error (#7238) 2020-12-10 16:42:30 +02:00
no_main_println_err.vv parser: optimize no main file process 2020-05-13 14:02:04 +02:00
no_method_on_interface_propagation.out checker: don't disallow defining methods on interfaces (#8335) 2021-01-26 11:56:17 +01:00
no_method_on_interface_propagation.vv checker: don't disallow defining methods on interfaces (#8335) 2021-01-26 11:56:17 +01:00
no_pub_in_main.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
non_matching_functional_args.out checker,builder: rename `details:` to `Details:` 2021-01-30 10:20:09 +02:00
non_matching_functional_args.vv checker: add details about a non matching functional argument 2020-07-04 22:37:06 +03:00
none_type_cast_err.out checker: add alias cast type check (closes #6705) (#6709) 2020-11-02 01:17:35 +01:00
none_type_cast_err.vv checker: disallow type casting to `none` (#6635) 2020-10-17 20:02:30 +03:00
oct_lit_without_digit_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
oct_lit_without_digit_err.vv scanner: fix err pos related to num literals 2020-05-21 16:20:36 +03:00
oct_lit_wrong_digit_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
oct_lit_wrong_digit_err.vv scanner: fix err pos related to num literals 2020-05-21 16:20:36 +03:00
optional_index_err.out checker: add more checks for index_expr (#6737) 2020-11-07 14:55:05 +01:00
optional_index_err.vv checker: add more checks for index_expr (#6737) 2020-11-07 14:55:05 +01:00
optional_method_err.out all: require calling `optfn() ?` / `optfn() or {...}` for `fn optfn() ? {}` 2021-01-26 16:43:17 +02:00
optional_method_err.vv tests: add optional_method_err.vv 2020-09-12 13:12:06 +03:00
optional_or_block_mismatch.out parser: return incomplete selector expr stmt (#7465) 2020-12-22 13:00:23 +01:00
optional_or_block_mismatch.vv checker: fix or_block return &type mismatch (#7138) 2020-12-05 08:06:51 +02:00
optional_or_block_none_err.out checker: fix optional or_block {none} (#7095) 2020-12-03 01:03:17 +01:00
optional_or_block_none_err.vv checker: fix optional or_block {none} (#7095) 2020-12-03 01:03:17 +01:00
optional_or_block_returns_value_of_incompatible_type.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
optional_or_block_returns_value_of_incompatible_type.vv checker: disallow `opt_returning_string() or { ... 123 }` (closes #6711) 2020-11-02 05:29:37 +02:00
optional_propagate_nested.out checker: support nested propagation cases `f(g() ?)` (#8447) 2021-01-30 16:53:31 +01:00
optional_propagate_nested.vv checker: support nested propagation cases `f(g() ?)` (#8447) 2021-01-30 16:53:31 +01:00
optional_type_call_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
optional_type_call_err.vv checker: check optional type call 2020-06-23 11:39:58 +02:00
optional_void_called_as_normal.out all: require calling `optfn() ?` / `optfn() or {...}` for `fn optfn() ? {}` 2021-01-26 16:43:17 +02:00
optional_void_called_as_normal.vv all: require calling `optfn() ?` / `optfn() or {...}` for `fn optfn() ? {}` 2021-01-26 16:43:17 +02:00
or_err.out parser: fixes or block position (#6736) 2020-11-04 16:02:01 +02:00
or_err.vv checker: tweak error messages for `or` block; use proper type names (#6377) 2020-09-18 01:09:00 +02:00
orm_empty_struct.out orm: fix empty struct and simplify (#8246) 2021-01-22 23:28:26 +01:00
orm_empty_struct.vv orm: fix empty struct and simplify (#8246) 2021-01-22 23:28:26 +01:00
overflow_int_err.out parser: parse `-1` and `-13.3` as number literals (#8321) 2021-01-24 22:09:51 +01:00
overflow_int_err.vv checker: prompt error on implicit int overflow by literal (#6410) 2020-09-20 16:29:01 +02:00
overload_return_type.out checker: add check_expected() which returns an optional error (#6623) 2020-10-15 17:30:36 +02:00
overload_return_type.vv gen: named imported structs operator overloading and str methods (#6433) 2020-09-20 19:51:14 +02:00
plus_or_minus_assign_one_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
plus_or_minus_assign_one_err.vv checker: use ++ / -- instead of += 1 / -= 1 2020-06-14 19:05:05 +02:00
pointer_ops.out checker: disallow indexing a voidptr (#8109) 2021-01-14 20:51:43 +02:00
pointer_ops.vv checker: disallow indexing a voidptr (#8109) 2021-01-14 20:51:43 +02:00
prefix_err.out docs: fix functions in array/map example (#8695) 2021-02-12 21:10:54 +02:00
prefix_err.vv checker: support ParExpr for trying to take address errors & simplify messages 2021-02-13 02:49:22 +11:00
prefix_expr_decl_assign_err.out fmt: keep single empty lines (#8189) 2021-01-19 14:49:40 +01:00
prefix_expr_decl_assign_err.vv checker: add error for ast.PrefixExpr on the left side of decl_assign (#6660) 2020-10-21 17:37:30 +02:00
ptr_assign.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
ptr_assign.vv checker: disallow assigning number to pointer (#7267) 2020-12-12 10:42:07 +01:00
receiver_unknown_type_single_letter.out checker: fix receiver pos for single letter type error message (#8393) 2021-01-28 15:20:07 +02:00
receiver_unknown_type_single_letter.vv checker: add a test for the single letter receiver 2021-01-28 11:13:51 +01:00
reference_field_must_be_initialized.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
reference_field_must_be_initialized.vv checker: fix checking uninitialized refs 2020-05-10 22:26:47 +02:00
reference_return.out checker: check reference return to be really reference (#7739) 2020-12-31 12:42:22 +01:00
reference_return.vv checker: check reference return to be really reference (#7739) 2020-12-31 12:42:22 +01:00
return_count_mismatch.out checker: improve errors for `return` count mismatch (#8686) 2021-02-12 01:47:11 +02:00
return_count_mismatch.vv checker: improve errors for `return` count mismatch (#8686) 2021-02-12 01:47:11 +02:00
return_duplicate_with_none_err_a.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
return_duplicate_with_none_err_a.vv checker: check return_duplicate_with_none (closes #5363) 2020-06-15 15:10:45 +10:00
return_duplicate_with_none_err_b.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
return_duplicate_with_none_err_b.vv checker: check return_duplicate_with_none (closes #5363) 2020-06-15 15:10:45 +10:00
return_missing_comp_if.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
return_missing_comp_if.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_missing_comp_if_nested.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
return_missing_comp_if_nested.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_missing_if_else_simple.out checker: add a missing return regression test for if branches too 2020-11-11 18:06:13 +02:00
return_missing_if_else_simple.vv checker: add a missing return regression test for if branches too 2020-11-11 18:06:13 +02:00
return_missing_if_match.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
return_missing_if_match.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_missing_match_if.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
return_missing_match_if.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_missing_match_simple.out parser: add a warning for only else branch in match (#8185) 2021-01-18 18:31:36 +02:00
return_missing_match_simple.vv checker: check that fns with return values, and matches, do return 2020-11-11 17:23:57 +02:00
return_missing_nested.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
return_missing_nested.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_missing_simple.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
return_missing_simple.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_optional_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
return_optional_err.vv checker: optional return fix 2020-06-04 10:40:32 +02:00
return_ref_as_no_ref_bug.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
return_ref_as_no_ref_bug.vv checker: add error for `fn f() Struct { return &Struct{} }` (#6019) 2020-07-29 21:40:43 +02:00
return_type.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
return_type.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
return_working_comp_if.out checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_comp_if.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_comp_if_nested.out checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_comp_if_nested.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_if_match.out checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_if_match.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_match_if.out checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_match_if.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_nested.out checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_nested.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_simple.out checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_simple.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_two_if.out checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_two_if.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_unsafe.out checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
return_working_unsafe.vv checker: check all branches for return (#5763) 2020-07-09 22:38:43 +02:00
rshift_op_wrong_left_type_err.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
rshift_op_wrong_left_type_err.vv parser: `expression evaluated but not used` error 2020-06-16 11:06:53 +02:00
rshift_op_wrong_right_type_err.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
rshift_op_wrong_right_type_err.vv parser: `expression evaluated but not used` error 2020-06-16 11:06:53 +02:00
selector_expr_assign.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
selector_expr_assign.vv parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
selector_expr_optional_err.out checker: add checks for optional selector_expr (#8330) 2021-01-27 13:53:20 +01:00
selector_expr_optional_err.vv checker: add checks for optional selector_expr (#8330) 2021-01-27 13:53:20 +01:00
shared_bad_args.out all: make `lock` and `rlock` dead lock free :-) (#8534) 2021-02-03 15:16:52 +01:00
shared_bad_args.vv checker,cgen: make `shared` behave like `mut` inside `lock` - and like non-mut inside `rlock` (#8526) 2021-02-03 01:20:19 +02:00
shared_type_mismatch.out fmt: enable shared return types (#8614) 2021-02-06 21:25:06 +01:00
shared_type_mismatch.vv fmt: enable shared return types (#8614) 2021-02-06 21:25:06 +01:00
shift_op_wrong_left_type_err.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
shift_op_wrong_left_type_err.vv parser: `expression evaluated but not used` error 2020-06-16 11:06:53 +02:00
shift_op_wrong_right_type_err.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
shift_op_wrong_right_type_err.vv parser: `expression evaluated but not used` error 2020-06-16 11:06:53 +02:00
short_struct_wrong_number.out checker: check number of fields in short struct inits (#6280) 2020-08-31 22:17:59 +02:00
short_struct_wrong_number.vv checker: check number of fields in short struct inits (#6280) 2020-08-31 22:17:59 +02:00
sort_method_called_on_immutable_receiver.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
sort_method_called_on_immutable_receiver.vv sort: require a mutable receiver 2020-08-21 21:19:37 +03:00
static_vars_in_translated_mode.out parser: support `mut static x := y` in -translated mode 2020-10-09 22:24:21 +03:00
static_vars_in_translated_mode.vv parser: support `mut static x := y` in -translated mode 2020-10-09 22:24:21 +03:00
str_method_0_arguments.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
str_method_0_arguments.vv checker: add check for strict .str() method signature 2020-07-04 14:14:43 +03:00
str_method_return_string.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
str_method_return_string.vv checker: add check for strict .str() method signature 2020-07-04 14:14:43 +03:00
string_char_null_err.out scanner/parser: change error msgs for `\0` and `\x00` and add error for r`byte` and c`byte` (#6436) 2020-09-21 17:34:24 +03:00
string_char_null_err.vv scanner: allow escape on null character (#6404) 2020-09-18 01:02:06 +02:00
string_escape_u_err_a.out scanner: fix escape `\u` (fix #6849) (#7012) 2020-11-29 17:01:40 +02:00
string_escape_u_err_a.vv scanner: fix escape `\u` (fix #6849) (#7012) 2020-11-29 17:01:40 +02:00
string_escape_u_err_b.out scanner: fix escape `\u` (fix #6849) (#7012) 2020-11-29 17:01:40 +02:00
string_escape_u_err_b.vv scanner: fix escape `\u` (fix #6849) (#7012) 2020-11-29 17:01:40 +02:00
string_escape_x_err_a.out scanner: fix error of backslash escaping x in ident_string(fix #6850) (#6994) 2020-11-29 00:39:45 +02:00
string_escape_x_err_a.vv scanner: fix error of backslash escaping x in ident_string(fix #6850) (#6994) 2020-11-29 00:39:45 +02:00
string_escape_x_err_b.out scanner: fix error of backslash escaping x in ident_string(fix #6850) (#6994) 2020-11-29 00:39:45 +02:00
string_escape_x_err_b.vv scanner: fix error of backslash escaping x in ident_string(fix #6850) (#6994) 2020-11-29 00:39:45 +02:00
string_index_assign_error.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
string_index_assign_error.vv checker: add a check for str[i] = `a` (#6107) 2020-08-11 17:41:54 +02:00
string_index_non_int_err.out checker: add more checks for index_expr (#6737) 2020-11-07 14:55:05 +01:00
string_index_non_int_err.vv checker: add more checks for index_expr (#6737) 2020-11-07 14:55:05 +01:00
string_interpolation_invalid_fmt.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
string_interpolation_invalid_fmt.vv cgen: restructure string_inter_literal() 2020-06-16 10:41:51 +02:00
string_interpolation_wrong_fmt.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
string_interpolation_wrong_fmt.vv cgen: restructure string_inter_literal() 2020-06-16 10:41:51 +02:00
struct_assigned_to_pointer_to_struct.out checker: add a check for `ptr = Abc{}` 2020-11-07 21:19:46 +02:00
struct_assigned_to_pointer_to_struct.vv checker: add a check for `ptr = Abc{}` 2020-11-07 21:19:46 +02:00
struct_cast_to_struct_generic_err.out checker: allow `Struct{...expr}` where `expr` is another struct type (#8495) 2021-02-01 20:08:25 +01:00
struct_cast_to_struct_generic_err.vv checker: check struct casting (#5864) 2020-08-14 14:57:08 +02:00
struct_cast_to_struct_mut_err_a.out checker: allow `Struct{...expr}` where `expr` is another struct type (#8495) 2021-02-01 20:08:25 +01:00
struct_cast_to_struct_mut_err_a.vv checker: check struct casting (#5864) 2020-08-14 14:57:08 +02:00
struct_cast_to_struct_mut_err_b.out checker: allow `Struct{...expr}` where `expr` is another struct type (#8495) 2021-02-01 20:08:25 +01:00
struct_cast_to_struct_mut_err_b.vv checker: check struct casting (#5864) 2020-08-14 14:57:08 +02:00
struct_cast_to_struct_pub_err_a.out checker: allow `Struct{...expr}` where `expr` is another struct type (#8495) 2021-02-01 20:08:25 +01:00
struct_cast_to_struct_pub_err_a.vv checker: check struct casting (#5864) 2020-08-14 14:57:08 +02:00
struct_cast_to_struct_pub_err_b.out checker: allow `Struct{...expr}` where `expr` is another struct type (#8495) 2021-02-01 20:08:25 +01:00
struct_cast_to_struct_pub_err_b.vv checker: check struct casting (#5864) 2020-08-14 14:57:08 +02:00
struct_embed_invalid_type.out all: struct embedding 2020-10-30 07:09:26 +01:00
struct_embed_invalid_type.vv all: struct embedding 2020-10-30 07:09:26 +01:00
struct_field_name_duplicate_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
struct_field_name_duplicate_err.vv all: fix struct names error 2020-05-27 19:12:34 +03:00
struct_init_update_type_err.out checker: allow `Struct{...expr}` where `expr` is another struct type (#8495) 2021-02-01 20:08:25 +01:00
struct_init_update_type_err.vv checker: allow `Struct{...expr}` where `expr` is another struct type (#8495) 2021-02-01 20:08:25 +01:00
struct_pub_field.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
struct_pub_field.vv parser: do not allow 1 char struct names 2020-05-27 16:00:00 +02:00
struct_required_field.out docs: document the `[required]` struct attribute (#6956) 2020-11-27 15:37:12 +02:00
struct_required_field.vv checker: implement `[required]` struct field attribute (#6276) 2020-08-31 23:15:40 +02:00
struct_type_cast_err.out checker: make implementing an interface with another interface an error (#8398) 2021-01-29 00:41:59 +01:00
struct_type_cast_err.vv checker: check casting struct -> interface; disallow casting struct -> interface pointer (#8110) 2021-01-15 01:20:58 +01:00
struct_unknown_field.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
struct_unknown_field.vv parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
struct_unneeded_default.out checker: fix error pos on default value (#6338) 2020-09-09 15:34:41 +02:00
struct_unneeded_default.vv checker: fix error pos on default value (#6338) 2020-09-09 15:34:41 +02:00
sum.out checker: add alias cast type check (closes #6705) (#6709) 2020-11-02 01:17:35 +01:00
sum.vv checker - improve error for `as` casting on non-sum type (#6587) 2020-10-09 16:12:12 +02:00
sum_type_assign_non_variant_err.out all: nested sum types (#6913) 2020-11-23 16:16:13 +01:00
sum_type_assign_non_variant_err.vv all: refactor UnionSumType to SumType (#6944) 2020-11-25 13:09:40 +02:00
sum_type_exists.out checker: ban any_int/any_float outside buitlin (#7675) 2020-12-31 12:41:30 +01:00
sum_type_exists.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
sum_type_infix_err.out checker: fix sum type operator check (#6815) 2020-11-17 21:26:40 +01:00
sum_type_infix_err.vv all: refactor UnionSumType to SumType (#6944) 2020-11-25 13:09:40 +02:00
sum_type_multiple_type_define.out checker: error, when same type is used multiple times in a sum type (#7432) 2020-12-21 22:05:50 +02:00
sum_type_multiple_type_define.vv checker: error, when same type is used multiple times in a sum type (#7432) 2020-12-21 22:05:50 +02:00
sum_type_mutable_cast_err.out checker: fix sumtype matching test (#7235) 2020-12-10 17:22:54 +02:00
sum_type_mutable_cast_err.vv checker: fix sumtype matching test (#7235) 2020-12-10 17:22:54 +02:00
sum_type_ref_variant_err.out parser: disallow ptr type as sum type variant (#6996) 2020-11-28 23:40:40 +02:00
sum_type_ref_variant_err.vv parser: disallow ptr type as sum type variant (#6996) 2020-11-28 23:40:40 +02:00
test_functions_should_not_return_test.out checker: add check against `fn test_opt() ?{}` 2020-11-20 15:12:53 +02:00
test_functions_should_not_return_test.vv checker: add check against `fn test_opt() ?{}` 2020-11-20 15:12:53 +02:00
trailing_comma_struct_attr.out parser: improve printing of unexpected tokens (#8654) 2021-02-09 17:07:30 +02:00
trailing_comma_struct_attr.vv parser: add support for multiple struct field attributes 2020-05-08 15:09:42 +02:00
type_cast_optional_err.out checker: add more casts checks (#7355) 2020-12-16 17:50:39 +01:00
type_cast_optional_err.vv checker: add more casts checks (#7355) 2020-12-16 17:50:39 +01:00
typedef_attr_v_struct_err.out checker/cgen: add checks and fix cgen for [typedef] for C structs (#8169) 2021-01-17 17:18:07 +02:00
typedef_attr_v_struct_err.vv checker/cgen: add checks and fix cgen for [typedef] for C structs (#8169) 2021-01-17 17:18:07 +02:00
unexpected_or.out parser: fixes or block position (#6736) 2020-11-04 16:02:01 +02:00
unexpected_or.vv parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
unexpected_or_propagate.out checker: improve wording on error messages (#6799) 2020-11-11 23:11:27 +02:00
unexpected_or_propagate.vv compiler: propagate optional 2020-05-23 08:51:15 +02:00
unfinished_string.out scanner: add an error for unfinished string literals (#6519) 2020-10-01 16:40:59 +03:00
unfinished_string.vv scanner: add an error for unfinished string literals (#6519) 2020-10-01 16:40:59 +03:00
unimplemented_interface_a.out cgen: fix `x.interface_field = value_implementing_interface` (closes #7620) 2020-12-27 19:12:39 +02:00
unimplemented_interface_a.vv checker: check interface implementation 2020-05-06 11:29:37 +02:00
unimplemented_interface_b.out checker,builder: rename `details:` to `Details:` 2021-01-30 10:20:09 +02:00
unimplemented_interface_b.vv checker: check interface implementation 2020-05-06 11:29:37 +02:00
unimplemented_interface_c.out checker,builder: rename `details:` to `Details:` 2021-01-30 10:20:09 +02:00
unimplemented_interface_c.vv checker: check interface implementation 2020-05-06 11:29:37 +02:00
unimplemented_interface_d.out checker,builder: rename `details:` to `Details:` 2021-01-30 10:20:09 +02:00
unimplemented_interface_d.vv checker: check interface implementation 2020-05-06 11:29:37 +02:00
unimplemented_interface_e.out checker,builder: rename `details:` to `Details:` 2021-01-30 10:20:09 +02:00
unimplemented_interface_e.vv checker: check casting struct -> interface; disallow casting struct -> interface pointer (#8110) 2021-01-15 01:20:58 +01:00
unimplemented_interface_f.out checker,builder: rename `details:` to `Details:` 2021-01-30 10:20:09 +02:00
unimplemented_interface_f.vv checker: check interface implementation 2020-05-06 11:29:37 +02:00
unimplemented_interface_g.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
unimplemented_interface_g.vv.disabled tcc: fix selfcompilation with tcc. Temporarily disable crashing interface test 2020-05-07 20:59:45 +03:00
unimplemented_interface_h.out checker: add mutability checks for interface fields; add tests (#8312) 2021-01-24 22:11:17 +01:00
unimplemented_interface_h.vv checker: add mutability checks for interface fields; add tests (#8312) 2021-01-24 22:11:17 +01:00
unimplemented_interface_i.out checker: add mutability checks for interface fields; add tests (#8312) 2021-01-24 22:11:17 +01:00
unimplemented_interface_i.vv checker: add mutability checks for interface fields; add tests (#8312) 2021-01-24 22:11:17 +01:00
unimplemented_interface_j.out checker: add mutability checks for interface fields; add tests (#8312) 2021-01-24 22:11:17 +01:00
unimplemented_interface_j.vv checker: add mutability checks for interface fields; add tests (#8312) 2021-01-24 22:11:17 +01:00
union_unsafe_fields.out checker: fix warning & allow assigning to a union field without unsafe (#7970) 2021-01-09 01:32:33 +01:00
union_unsafe_fields.vv checker: fix warning & allow assigning to a union field without unsafe (#7970) 2021-01-09 01:32:33 +01:00
unknown_array_element_type_b.out all: better type error positions (#6345) 2020-09-11 14:37:14 +02:00
unknown_array_element_type_b.vv checker: add error for struct fields of type []unknown 2020-05-28 19:38:53 +03:00
unknown_as_type.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
unknown_as_type.vv checker: `as` type test 2020-06-19 11:27:20 +02:00
unknown_comptime_expr.out checker: initial support for evaluating expressions at compile time (#7248) 2020-12-11 04:46:06 +01:00
unknown_comptime_expr.vv checker: initial support for evaluating expressions at compile time (#7248) 2020-12-11 04:46:06 +01:00
unknown_field.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
unknown_field.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
unknown_generic_type.out checker: require explicit return none (#8060) 2021-01-12 11:43:55 +01:00
unknown_generic_type.vv checker: require explicit return none (#8060) 2021-01-12 11:43:55 +01:00
unknown_method.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
unknown_method.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
unknown_method_suggest_name.out all: better type error positions (#6345) 2020-09-11 14:37:14 +02:00
unknown_method_suggest_name.vv checker: check number of fields in short struct inits (#6280) 2020-08-31 22:17:59 +02:00
unknown_struct_field_suggest_name.out checker: add a suggestion for misspelled struct field name errors 2020-10-01 15:36:47 +03:00
unknown_struct_field_suggest_name.vv checker: add a suggestion for misspelled struct field name errors 2020-10-01 15:36:47 +03:00
unknown_struct_name.out checker: check for an unknown struct name (fix #8007) (#8010) 2021-01-10 21:16:53 +02:00
unknown_struct_name.vv checker: check for an unknown struct name (fix #8007) (#8010) 2021-01-10 21:16:53 +02:00
unknown_var_assign.out checker: error on `mut name =` (#6247) 2020-08-28 20:07:32 +03:00
unknown_var_assign.vv checker: suggest using `:=` when assigning to undefined variable (#5911) 2020-07-21 19:49:53 +03:00
unnecessary_parenthesis.out ast: merge `IfExpr` and `CompIf` (#6011) 2020-09-18 00:58:54 +02:00
unnecessary_parenthesis.vv checker: reorganize tests to match fmt tests 2020-04-26 12:34:42 +02:00
unreachable_code.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
unreachable_code.vv checker: unreachable code warning 2020-04-29 12:31:18 +02:00
unsafe_c_calls_should_be_checked.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
unsafe_c_calls_should_be_checked.vv checker: warn if C.m* or C.s* functions are called outside unsafe blocks (#5869) 2020-07-20 20:06:41 +03:00
unsafe_pointer_arithmetic_should_be_checked.out checker: remove duplicated unsafe tests (#7216) 2020-12-09 19:57:15 +01:00
unsafe_pointer_arithmetic_should_be_checked.vv checker: remove duplicated unsafe tests (#7216) 2020-12-09 19:57:15 +01:00
unsafe_required.out checker: remove duplicated unsafe tests (#7216) 2020-12-09 19:57:15 +01:00
unsafe_required.vv checker: remove duplicated unsafe tests (#7216) 2020-12-09 19:57:15 +01:00
unwrapped_optional_infix.out ci: fix .out files after 40ce18f 2020-12-29 16:10:55 +02:00
unwrapped_optional_infix.vv checker: handle unwrapped optionals in infix exprs 2020-12-29 13:49:43 +01:00
use_deprecated_function_warning.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
use_deprecated_function_warning.vv checker: check deprecated functions 2020-06-23 16:25:24 +02:00
var_duplicate_const.out checker: check duplicate of a const name (#8396) 2021-01-28 18:34:55 +01:00
var_duplicate_const.vv checker: check duplicate of a const name (#8396) 2021-01-28 18:34:55 +01:00
var_eval_not_used.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
var_eval_not_used.vv parser: add error for variables, that are evaluated, but not used 2020-05-11 11:13:36 +03:00
var_eval_not_used_scope.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
var_eval_not_used_scope.vv parser: add error for variables, that are evaluated, but not used 2020-05-11 11:13:36 +03:00
var_used_before_declaration.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
var_used_before_declaration.vv checker: error if variable used before declaration 2020-06-20 12:42:08 +10:00
void_fn_as_value.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
void_fn_as_value.vv parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
void_function_assign_to_string.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
void_function_assign_to_string.vv checker: update tests 2020-10-15 12:39:32 +02:00
void_optional_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
void_optional_err.vv parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
vweb_routing_checks.out vweb: fix routing test 2021-01-08 05:59:23 +01:00
vweb_routing_checks.vv vweb: remove `return vweb.Result{}` everywhere 2021-01-08 04:57:02 +01:00
vweb_tmpl_used_var.out checker: remove vweb unused vars (#8180) 2021-01-21 11:09:19 +01:00
vweb_tmpl_used_var.vv checker: remove vweb unused vars (#8180) 2021-01-21 11:09:19 +01:00
warnings_for_string_c2v_calls.out checker: add alias cast type check (closes #6705) (#6709) 2020-11-02 01:17:35 +01:00
warnings_for_string_c2v_calls.vv builtin: x.vstring() instead of string(x) (#6102) 2020-08-10 18:05:26 +02:00
wrong_propagate_ret_type.out checker: improve wording on error messages (#6799) 2020-11-11 23:11:27 +02:00
wrong_propagate_ret_type.vv compiler: propagate optional 2020-05-23 08:51:15 +02:00