v/vlib/v/parser/tests
Daniel Däschle 85cb0a8c85
all: basic implementation of result type (#14140)
2022-04-30 16:26:27 +02:00
..
README.md
anon_fn_return_type.out parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
anon_fn_return_type.vv parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
anon_sum_type_interface.out all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
anon_sum_type_interface.vv all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
anon_sum_type_multi_return_err.out all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
anon_sum_type_multi_return_err.vv all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
anon_sum_type_receiver_err.out all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
anon_sum_type_receiver_err.vv all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
anon_sum_type_struct.out all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
anon_sum_type_struct.vv all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
anon_unused_param.out parser: require anonymous fn to use `_` for unused parameters (#9262) 2021-03-12 14:17:37 +02:00
anon_unused_param.vv parser: require anonymous fn to use `_` for unused parameters (#9262) 2021-03-12 14:17:37 +02:00
array_init.out parser: improve array init warning (#8024) 2021-01-13 06:03:23 +01:00
array_init.vv parser: improve array init warning (#8024) 2021-01-13 06:03:23 +01:00
array_pos_err.out parser: fix position of array init (#6998) 2020-11-28 17:05:14 +02:00
array_pos_err.vv parser: fix position of array init (#6998) 2020-11-28 17:05:14 +02:00
c_struct_no_embed.out parser: fix fn args eol errors (#7222) 2020-12-10 11:56:08 +02:00
c_struct_no_embed.vv all: struct embedding 2020-10-30 07:09:26 +01:00
check_undefined_variables_too_deep_nested.out parser: check assign expr with undefined variables of struct_init (#13495) 2022-02-17 10:21:03 +03:00
check_undefined_variables_too_deep_nested.vv parser: prevent too deep recursions in p.check_undefined_variables 2021-12-27 12:30:17 +02:00
closure_not_declared.out all: initial support for closures (x64 / linux-only) (#11114) 2021-08-10 21:27:15 +03:00
closure_not_declared.vv all: initial support for closures (x64 / linux-only) (#11114) 2021-08-10 21:27:15 +03:00
closure_not_used.out all: initial support for closures (x64 / linux-only) (#11114) 2021-08-10 21:27:15 +03:00
closure_not_used.vv all: initial support for closures (x64 / linux-only) (#11114) 2021-08-10 21:27:15 +03:00
closure_undefined_var.out all: initial support for closures (x64 / linux-only) (#11114) 2021-08-10 21:27:15 +03:00
closure_undefined_var.vv all: initial support for closures (x64 / linux-only) (#11114) 2021-08-10 21:27:15 +03:00
const_index.out parser: disallow indexing on next line at top-level (#8128) 2021-01-17 05:30:41 +01:00
const_index.vv parser: fix optional expr with array value (#13599) 2022-02-25 15:54:12 +03:00
const_missing_rpar_a.out parser: proper unexpected eof errors in const declarations (#9712) 2021-04-15 01:31:49 +02:00
const_missing_rpar_a.vv parser: proper unexpected eof errors in const declarations (#9712) 2021-04-15 01:31:49 +02:00
const_missing_rpar_b.out parser: proper unexpected eof errors in const declarations (#9712) 2021-04-15 01:31:49 +02:00
const_missing_rpar_b.vv parser: proper unexpected eof errors in const declarations (#9712) 2021-04-15 01:31:49 +02:00
const_only_keyword.out parser: proper unexpected eof errors in const declarations (#9712) 2021-04-15 01:31:49 +02:00
const_only_keyword.vv parser: proper unexpected eof errors in const declarations (#9712) 2021-04-15 01:31:49 +02:00
const_unexpected_eof.out parser: proper unexpected eof errors in const declarations (#9712) 2021-04-15 01:31:49 +02:00
const_unexpected_eof.vv parser: proper unexpected eof errors in const declarations (#9712) 2021-04-15 01:31:49 +02:00
dec_use_as_value.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
dec_use_as_value.vv parser: add error for `for i := 0; i++; i < ..` (#5850) 2020-07-17 10:31:58 +03:00
defer_propagate.out checker: forbid leaving function from inside `defer` block (#10285) 2021-05-31 17:09:57 +03:00
defer_propagate.vv checker: forbid leaving function from inside `defer` block (#10285) 2021-05-31 17:09:57 +03:00
defer_propagate2.out parser: check error for defer propagate (fix #13534) (#13536) 2022-02-20 12:29:08 +02:00
defer_propagate2.vv parser: check error for defer propagate (fix #13534) (#13536) 2022-02-20 12:29:08 +02:00
defer_return.out checker: forbid leaving function from inside `defer` block (#10285) 2021-05-31 17:09:57 +03:00
defer_return.vv checker: forbid leaving function from inside `defer` block (#10285) 2021-05-31 17:09:57 +03:00
defer_return2.out checker: forbid leaving function from inside `defer` block (#10285) 2021-05-31 17:09:57 +03:00
defer_return2.vv checker: forbid leaving function from inside `defer` block (#10285) 2021-05-31 17:09:57 +03:00
duplicate_field_embed_err.out all: reimplement struct embedding with methods (#7506) 2020-12-23 19:12:49 +01:00
duplicate_field_embed_err.vv all: reimplement struct embedding with methods (#7506) 2020-12-23 19:12:49 +01:00
duplicate_type_a.out scanner: multibyte rune literals now support unicode, hex, and octal escape codes (#13140) 2022-01-19 03:23:25 +03:00
duplicate_type_a.vv
duplicate_type_b.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
duplicate_type_b.vv
duplicated_generic_err.out all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
duplicated_generic_err.vv all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
empty_name_expr_err.out v.parser: fix error on empty name expr (#10860) 2021-07-19 17:09:51 +03:00
empty_name_expr_err.vv v.parser: fix error on empty name expr (#10860) 2021-07-19 17:09:51 +03:00
expected_type_enum_err.out parser: fix expected type enum error pos (#7265) 2020-12-11 19:23:29 +02:00
expected_type_enum_err.vv parser: fix expected type enum error pos (#7265) 2020-12-11 19:23:29 +02:00
expecting_assign_type_alias.out parser: require assign on type alias (#6477) 2020-09-25 12:02:32 +02:00
expecting_assign_type_alias.vv parser: require assign on type alias (#6477) 2020-09-25 12:02:32 +02:00
export_interop_func_err.out v.parser: add checks for interoperability (C. or JS.) function declarations (#11140) 2021-08-12 10:47:24 +03:00
export_interop_func_err.vv v.parser: add checks for interoperability (C. or JS.) function declarations (#11140) 2021-08-12 10:47:24 +03:00
expr_evaluated_but_not_used_a.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
expr_evaluated_but_not_used_a.vv
expr_evaluated_but_not_used_b.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
expr_evaluated_but_not_used_b.vv
expr_evaluated_but_not_used_c.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
expr_evaluated_but_not_used_c.vv
expr_evaluated_but_not_used_d.out parser: check not used expression for all exprs in multi-expr (#8733) 2021-02-15 17:41:04 +02:00
expr_evaluated_but_not_used_d.vv parser: check not used expression for all exprs in multi-expr (#8733) 2021-02-15 17:41:04 +02:00
expr_evaluated_but_not_used_e.out parser: check not used expression for all exprs in multi-expr (#8733) 2021-02-15 17:41:04 +02:00
expr_evaluated_but_not_used_e.vv parser: check not used expression for all exprs in multi-expr (#8733) 2021-02-15 17:41:04 +02:00
expr_evaluated_but_not_used_if.out parser: report unused expression error in if and or blocks (#6953) 2020-11-26 00:28:41 +01:00
expr_evaluated_but_not_used_if.vv parser: report unused expression error in if and or blocks (#6953) 2020-11-26 00:28:41 +01:00
expr_evaluated_but_not_used_or.out parser: report unused expression error in if and or blocks (#6953) 2020-11-26 00:28:41 +01:00
expr_evaluated_but_not_used_or.vv parser: report unused expression error in if and or blocks (#6953) 2020-11-26 00:28:41 +01:00
fixed_array_size_using_non_constant_err.out parser, checker: correct error message for a fixed array size using a non constant (fix #13219) (#13228) 2022-01-20 13:03:19 +02:00
fixed_array_size_using_non_constant_err.vv parser, checker: correct error message for a fixed array size using a non constant (fix #13219) (#13228) 2022-01-20 13:03:19 +02:00
fn_attributes_duplicate_multiple.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
fn_attributes_duplicate_multiple.vv
fn_attributes_duplicate_single.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
fn_attributes_duplicate_single.vv
fn_attributes_empty_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
fn_attributes_empty_err.vv
fn_body_start_pos.out v.parser: change body_start_pos to function declaration's lcbr, resolve #13642 (#13646) 2022-03-03 19:51:27 +02:00
fn_body_start_pos.vv v.parser: change body_start_pos to function declaration's lcbr, resolve #13642 (#13646) 2022-03-03 19:51:27 +02:00
fn_decl_return_type_err_a.out parser: check using 'mut' on fn_decl return type (#13610) 2022-02-27 14:23:43 +02:00
fn_decl_return_type_err_a.vv parser: check using 'mut' on fn_decl return type (#13610) 2022-02-27 14:23:43 +02:00
fn_decl_return_type_err_b.out parser: check using 'mut' on fn_decl return type (#13610) 2022-02-27 14:23:43 +02:00
fn_decl_return_type_err_b.vv parser: check using 'mut' on fn_decl return type (#13610) 2022-02-27 14:23:43 +02:00
fn_decl_unexpected_eof.out scanner: fix eof token position (#9432) 2021-03-23 08:51:09 +01:00
fn_decl_unexpected_eof.vv scanner: fix eof token position (#9432) 2021-03-23 08:51:09 +01:00
fn_param_name_cap.out parser: error if parameter name starts with a capital (#13827) 2022-03-26 19:56:34 +02:00
fn_param_name_cap.vv parser: error if parameter name starts with a capital (#13827) 2022-03-26 19:56:34 +02:00
fn_type_only_args_in_interfaces.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
fn_type_only_args_in_interfaces.vv
fn_type_only_args_no_body.out v.parser: change body_start_pos to function declaration's lcbr, resolve #13642 (#13646) 2022-03-03 19:51:27 +02:00
fn_type_only_args_no_body.vv
fn_type_only_args_unknown_name.out v.parser: change body_start_pos to function declaration's lcbr, resolve #13642 (#13646) 2022-03-03 19:51:27 +02:00
fn_type_only_args_unknown_name.vv
fn_use_builtin_err.out checker: error on redefining any of the public builtin functions, not just ['print', 'println', 'eprint', 'eprintln', 'isnil', 'panic', 'exit'] (#13419) 2022-02-10 12:26:30 +02:00
fn_use_builtin_err.vv parser: check for builtin function redefinitions (fix #7499) (#7507) 2020-12-23 18:17:09 +02:00
for_in_mut_index_of_array.out parser: check for_in mut key (#8235) 2021-01-21 12:46:15 +01:00
for_in_mut_index_of_array.vv parser: check for_in mut key (#8235) 2021-01-21 12:46:15 +01:00
for_in_mut_key_of_map.out vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
for_in_mut_key_of_map.vv vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
for_index_in_range.out parser: disallow `for mut in range` (fix #12234) (#12277) 2021-10-27 14:55:36 +03:00
for_index_in_range.vv parser: disallow `for mut in range` (fix #12234) (#12277) 2021-10-27 14:55:36 +03:00
for_mut_in_range.out parser: disallow `for mut in range` (fix #12234) (#12277) 2021-10-27 14:55:36 +03:00
for_mut_in_range.vv parser: disallow `for mut in range` (fix #12234) (#12277) 2021-10-27 14:55:36 +03:00
forbidden_language_support_c.c.out v.parser: forbid unsupported language functions/types in specific backends (#12655) 2021-12-18 10:00:31 +02:00
forbidden_language_support_c.c.vv v.parser: forbid unsupported language functions/types in specific backends (#12655) 2021-12-18 10:00:31 +02:00
forbidden_language_support_js.js.out v.parser: forbid unsupported language functions/types in specific backends (#12655) 2021-12-18 10:00:31 +02:00
forbidden_language_support_js.js.vv v.parser: forbid unsupported language functions/types in specific backends (#12655) 2021-12-18 10:00:31 +02:00
forbidden_language_support_js.out v.parser: forbid unsupported language functions/types in specific backends (#12655) 2021-12-18 10:00:31 +02:00
function_prototype_in_struct.out parser: fixed parsing prototype function with recursive type (#13922) 2022-04-05 18:39:49 +03:00
function_prototype_in_struct.vv parser: fixed parsing prototype function with recursive type (#13922) 2022-04-05 18:39:49 +03:00
function_variadic_arg_non_final.out checker: show position for variadic/shared/method argument errors (#8939) 2021-02-24 19:35:32 +01:00
function_variadic_arg_non_final.vv checker: show position for variadic/shared/method argument errors (#8939) 2021-02-24 19:35:32 +01:00
generic_lowercase_err.out all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
generic_lowercase_err.vv all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
generic_struct_type_decl_err.out parser: check generic parameters error of generic struct declaration (#12418) 2021-11-09 09:25:57 +02:00
generic_struct_type_decl_err.vv parser: check generic parameters error of generic struct declaration (#12418) 2021-11-09 09:25:57 +02:00
generic_type_alias_decl.out parser: disable generic type aliases (#10917) 2021-07-23 01:17:16 +03:00
generic_type_alias_decl.vv parser: disable generic type aliases (#10917) 2021-07-23 01:17:16 +03:00
if_guard_cond_err.out parser: check if guard condition (#13765) 2022-03-18 17:49:20 +03:00
if_guard_cond_err.vv parser: check if guard condition (#13765) 2022-03-18 17:49:20 +03:00
if_guard_redefinition.out parser: fix if-guard redefinition (#9425) 2021-03-23 04:38:36 +01:00
if_guard_redefinition.vv parser: fix if-guard redefinition (#9425) 2021-03-23 04:38:36 +01:00
inc_use_as_value.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
inc_use_as_value.vv parser: add error for `for i := 0; i++; i < ..` (#5850) 2020-07-17 10:31:58 +03:00
inline_sum_type_optional_err.out all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
inline_sum_type_optional_err.vv all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
inline_sum_type_return_type_too_many_variants.out token: rename Position to Pos, rename position() to pos() (#13279) 2022-01-26 12:36:28 +02:00
inline_sum_type_return_type_too_many_variants.vv token: rename Position to Pos, rename position() to pos() (#13279) 2022-01-26 12:36:28 +02:00
interface_duplicate_interface_method.out interfaces: error on implemention of own interface method & on duplicate normal methods 2021-03-03 15:02:10 +11:00
interface_duplicate_interface_method.vv docs: fix a typo 2022-01-02 09:18:24 +02:00
interface_duplicate_method.out interfaces: error on implemention of own interface method & on duplicate normal methods 2021-03-03 15:02:10 +11:00
interface_duplicate_method.vv interfaces: error on implemention of own interface method & on duplicate normal methods 2021-03-03 15:02:10 +11:00
interface_mutability_receiver.out checker: add an interface check for mutability, fixes #1081, fixes #7038 (#11963) 2021-10-11 15:41:31 +03:00
interface_mutability_receiver.vv checker: add an interface check for mutability, fixes #1081, fixes #7038 (#11963) 2021-10-11 15:41:31 +03:00
interop_func_body_err.out v.parser: add checks for interoperability (C. or JS.) function declarations (#11140) 2021-08-12 10:47:24 +03:00
interop_func_body_err.vv v.parser: add checks for interoperability (C. or JS.) function declarations (#11140) 2021-08-12 10:47:24 +03:00
invalid_attribute_a.out ast: use `AttrKind` (#9845) 2021-04-23 15:51:52 +03:00
invalid_attribute_a.vv ast: use `AttrKind` (#9845) 2021-04-23 15:51:52 +03:00
invalid_attribute_b.out ast: use `AttrKind` (#9845) 2021-04-23 15:51:52 +03:00
invalid_attribute_b.vv ast: use `AttrKind` (#9845) 2021-04-23 15:51:52 +03:00
invalid_attribute_c.out ast: use `AttrKind` (#9845) 2021-04-23 15:51:52 +03:00
invalid_attribute_c.vv ast: use `AttrKind` (#9845) 2021-04-23 15:51:52 +03:00
invalid_attribute_d.out ast: use `AttrKind` (#9845) 2021-04-23 15:51:52 +03:00
invalid_attribute_d.vv ast: use `AttrKind` (#9845) 2021-04-23 15:51:52 +03:00
invalid_fn_decl_script_err.out parser: proper error on fn decl in script mode (#7680) 2020-12-30 21:18:36 +02:00
invalid_fn_decl_script_err.vv parser: proper error on fn decl in script mode (#7680) 2020-12-30 21:18:36 +02:00
invalid_recursive_struct1_err.out parser: error on recursive struct (#7964) 2021-01-09 01:33:36 +01:00
invalid_recursive_struct1_err.vv parser: error on recursive struct (#7964) 2021-01-09 01:33:36 +01:00
invalid_recursive_struct2_err.out parser: error on recursive struct (#7964) 2021-01-09 01:33:36 +01:00
invalid_recursive_struct2_err.vv parser: error on recursive struct (#7964) 2021-01-09 01:33:36 +01:00
invalid_using_atomic.out parser: check using invalid keyword with none ident (#13743) 2022-03-15 12:58:03 +02:00
invalid_using_atomic.vv parser: check using invalid keyword with none ident (#13743) 2022-03-15 12:58:03 +02:00
invalid_using_mut.out parser: check using invalid keyword with none ident (#13743) 2022-03-15 12:58:03 +02:00
invalid_using_mut.vv parser: check using invalid keyword with none ident (#13743) 2022-03-15 12:58:03 +02:00
invalid_using_shared.out parser: check using invalid keyword with none ident (#13743) 2022-03-15 12:58:03 +02:00
invalid_using_shared.vv parser: check using invalid keyword with none ident (#13743) 2022-03-15 12:58:03 +02:00
invalid_using_static.out parser: check using invalid keyword with none ident (#13743) 2022-03-15 12:58:03 +02:00
invalid_using_static.vv parser: check using invalid keyword with none ident (#13743) 2022-03-15 12:58:03 +02:00
invalid_using_volatile.out parser: check using invalid keyword with none ident (#13743) 2022-03-15 12:58:03 +02:00
invalid_using_volatile.vv parser: check using invalid keyword with none ident (#13743) 2022-03-15 12:58:03 +02:00
long_generic_err.out all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
long_generic_err.vv all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
map_init.out parser: assure explicit `map` init contains no parameters (#8299) 2021-01-24 01:06:43 +02:00
map_init.vv parser: assure explicit `map` init contains no parameters (#8299) 2021-01-24 01:06:43 +02:00
map_init_void.out parser: assure explicit `map` init contains no parameters (#8299) 2021-01-24 01:06:43 +02:00
map_init_void.vv parser: assure explicit `map` init contains no parameters (#8299) 2021-01-24 01:06:43 +02:00
map_init_void2.out parser: assure explicit `map` init contains no parameters (#8299) 2021-01-24 01:06:43 +02:00
map_init_void2.vv parser: assure explicit `map` init contains no parameters (#8299) 2021-01-24 01:06:43 +02:00
map_syntax_err.out parser: cleanup map syntax (#13713) 2022-03-11 12:15:52 +03:00
map_syntax_err.vv parser: cleanup map syntax (#13713) 2022-03-11 12:15:52 +03:00
match_range_dotdot_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
match_range_dotdot_err.vv parser: force `...` rather than `..` in matches for inclusive ranges (#5852) 2020-07-17 11:30:21 +03:00
method_call_receiver_err.out parser: check the receiver error of method call (#13203) 2022-01-18 12:47:06 +02:00
method_call_receiver_err.vv parser: check the receiver error of method call (#13203) 2022-01-18 12:47:06 +02:00
method_decl_on_non_local_array.out parser: error on non local array/map methods & add tests 2020-12-11 20:50:26 +11:00
method_decl_on_non_local_array.vv parser: error on non local array/map methods & add tests 2020-12-11 20:50:26 +11:00
method_decl_on_non_local_map.out parser: error on non local array/map methods & add tests 2020-12-11 20:50:26 +11:00
method_decl_on_non_local_map.vv parser: error on non local array/map methods & add tests 2020-12-11 20:50:26 +11:00
method_decl_on_non_local_type.out parser: error on non local array/map methods & add tests 2020-12-11 20:50:26 +11:00
method_decl_on_non_local_type.vv parser: error on non local array/map methods & add tests 2020-12-11 20:50:26 +11:00
module_multiple_names_err.out builtin: add a `byterune` method on `[]byte` (#13145) 2022-01-13 22:26:17 +02:00
module_multiple_names_err.vv parser: improve syntax errors in module declarations 2021-03-11 10:42:36 +02:00
module_syntax_err.out parser: improve syntax errors in module declarations 2021-03-11 10:42:36 +02:00
module_syntax_err.vv parser: improve syntax errors in module declarations 2021-03-11 10:42:36 +02:00
multi_argumented_assign_err.out parser: fix the position of the multi variable += assign error (#7584) 2020-12-26 19:48:58 +02:00
multi_argumented_assign_err.vv parser: fix the position of the multi variable += assign error (#7584) 2020-12-26 19:48:58 +02:00
named_sum_type_none_err.out all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
named_sum_type_none_err.vv all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
nested_defer.out checker: forbid leaving function from inside `defer` block (#10285) 2021-05-31 17:09:57 +03:00
nested_defer.vv checker: forbid leaving function from inside `defer` block (#10285) 2021-05-31 17:09:57 +03:00
nested_unsafe_expr.out parser: clean error when nesting `unsafe` (#6656) 2020-10-20 22:57:24 +03:00
nested_unsafe_expr.vv parser: clean error when nesting `unsafe` (#6656) 2020-10-20 22:57:24 +03:00
nested_unsafe_stmt.out parser: clean error when nesting `unsafe` (#6656) 2020-10-20 22:57:24 +03:00
nested_unsafe_stmt.vv parser: clean error when nesting `unsafe` (#6656) 2020-10-20 22:57:24 +03:00
operator_normal_fn.out parser: error if operators are used as function names (#7532) 2020-12-24 13:38:11 +02:00
operator_normal_fn.vv parser: error if operators are used as function names (#7532) 2020-12-24 13:38:11 +02:00
option_result_err.out all: basic implementation of result type (#14140) 2022-04-30 16:26:27 +02:00
option_result_err.vv all: basic implementation of result type (#14140) 2022-04-30 16:26:27 +02:00
option_sum_type_return_err.out all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
option_sum_type_return_err.vv all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
or_default_missing.out checker: fix error for 'or expr with nested match expr' (#13658) 2022-03-05 13:06:08 +02:00
or_default_missing.vv vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
postfix_err.out tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
postfix_err.vv parser: warn if PostfixExpr followed by `]` or `)` token (#6214) 2020-08-25 08:50:06 +02:00
postfix_inc.out parser: improve printing of unexpected tokens (#8654) 2021-02-09 17:07:30 +02:00
postfix_inc.vv parser: require ++/-- to be on the same line as the previous token (#8621) 2021-02-07 23:10:16 +01:00
prefix_first.out checker: fix error for 'or expr with nested match expr' (#13658) 2022-03-05 13:06:08 +02:00
prefix_first.vv all: improve unused variable warning (fix `x = 1`, `x += 1` etc) 2021-04-23 13:33:48 +03:00
prohibit_redeclaration_of_builtin_types.out v.parser: prohibit redeclaration of builtin types (#10563) 2021-06-25 13:08:56 +03:00
prohibit_redeclaration_of_builtin_types.vv v.parser: prohibit redeclaration of builtin types (#10563) 2021-06-25 13:08:56 +03:00
redeclaration_of_imported_fn.out v.parser: prohibit redeclaration of imported functions (#10564) 2021-06-25 14:27:58 +03:00
redeclaration_of_imported_fn.vv v.parser: prohibit redeclaration of imported functions (#10564) 2021-06-25 14:27:58 +03:00
register_ierror_interface.out parser: check the redefinition of built-in IError (#13606) 2022-02-26 09:52:40 +02:00
register_ierror_interface.vv parser: check the redefinition of built-in IError (#13606) 2022-02-26 09:52:40 +02:00
register_ierror_struct.out parser: check the redefinition of built-in IError (#13606) 2022-02-26 09:52:40 +02:00
register_ierror_struct.vv parser: check the redefinition of built-in IError (#13606) 2022-02-26 09:52:40 +02:00
register_imported_alias.out v.parser: prohibit registering selectively imported (structs / enums / aliases / interfaces) (#10579) 2021-06-28 10:26:09 +03:00
register_imported_alias.vv v.parser: prohibit registering selectively imported (structs / enums / aliases / interfaces) (#10579) 2021-06-28 10:26:09 +03:00
register_imported_enum.out v.parser: prohibit registering selectively imported (structs / enums / aliases / interfaces) (#10579) 2021-06-28 10:26:09 +03:00
register_imported_enum.vv v.parser: prohibit registering selectively imported (structs / enums / aliases / interfaces) (#10579) 2021-06-28 10:26:09 +03:00
register_imported_interface.out v.parser: prohibit registering selectively imported (structs / enums / aliases / interfaces) (#10579) 2021-06-28 10:26:09 +03:00
register_imported_interface.vv v.parser: prohibit registering selectively imported (structs / enums / aliases / interfaces) (#10579) 2021-06-28 10:26:09 +03:00
register_imported_struct.out v.parser: prohibit registering selectively imported (structs / enums / aliases / interfaces) (#10579) 2021-06-28 10:26:09 +03:00
register_imported_struct.vv v.parser: prohibit registering selectively imported (structs / enums / aliases / interfaces) (#10579) 2021-06-28 10:26:09 +03:00
result_option_err.out all: basic implementation of result type (#14140) 2022-04-30 16:26:27 +02:00
result_option_err.vv all: basic implementation of result type (#14140) 2022-04-30 16:26:27 +02:00
select_bad_key_1.out parser: don't require unary `>` prefix for `select` timeout (#10928) 2021-07-23 23:24:27 +03:00
select_bad_key_1.vv parser: implement parsing of `select` block (#6379) 2020-09-16 15:34:57 +02:00
select_bad_key_2.out parser: don't require unary `>` prefix for `select` timeout (#10928) 2021-07-23 23:24:27 +03:00
select_bad_key_2.vv parser: don't require unary `>` prefix for `select` timeout (#10928) 2021-07-23 23:24:27 +03:00
select_bad_key_3.out parser: don't require unary `>` prefix for `select` timeout (#10928) 2021-07-23 23:24:27 +03:00
select_bad_key_3.vv parser: don't require unary `>` prefix for `select` timeout (#10928) 2021-07-23 23:24:27 +03:00
select_bad_key_4.out parser: implement parsing of `select` block (#6379) 2020-09-16 15:34:57 +02:00
select_bad_key_4.vv parser: implement parsing of `select` block (#6379) 2020-09-16 15:34:57 +02:00
select_else_1.out parser: don't require unary `>` prefix for `select` timeout (#10928) 2021-07-23 23:24:27 +03:00
select_else_1.vv parser: don't require unary `>` prefix for `select` timeout (#10928) 2021-07-23 23:24:27 +03:00
select_else_2.out parser: don't require unary `>` prefix for `select` timeout (#10928) 2021-07-23 23:24:27 +03:00
select_else_2.vv parser: implement parsing of `select` block (#6379) 2020-09-16 15:34:57 +02:00
sql_no_db_expr_a.out parser: fix struct init and assign using `sql` variable (#10968) 2021-07-26 21:14:31 +03:00
sql_no_db_expr_a.vv parser: improve error message for missing db expr in ORM (#9890) 2021-04-26 19:51:51 +03:00
sql_no_db_expr_b.out parser: improve error message for missing db expr in ORM (#9890) 2021-04-26 19:51:51 +03:00
sql_no_db_expr_b.vv parser: improve error message for missing db expr in ORM (#9890) 2021-04-26 19:51:51 +03:00
string_invalid_prefix_err.out parser: add an error for an invalid string prefix (#7019) 2020-11-30 10:58:00 +02:00
string_invalid_prefix_err.vv parser: add an error for an invalid string prefix (#7019) 2020-11-30 10:58:00 +02:00
struct_embed_duplicate.out all: struct embedding 2020-10-30 07:09:26 +01:00
struct_embed_duplicate.vv all: struct embedding 2020-10-30 07:09:26 +01:00
struct_embed_unknown_module.out all: struct embedding 2020-10-30 07:09:26 +01:00
struct_embed_unknown_module.vv all: struct embedding 2020-10-30 07:09:26 +01:00
struct_embed_wrong_pos_long_err.out parser: proper error when declaring struct embedding at the wrong pos (#7920) 2021-01-06 15:46:36 +01:00
struct_embed_wrong_pos_long_err.vv parser: proper error when declaring struct embedding at the wrong pos (#7920) 2021-01-06 15:46:36 +01:00
struct_embed_wrong_pos_short_err.out parser: proper error when declaring struct embedding at the wrong pos (#7920) 2021-01-06 15:46:36 +01:00
struct_embed_wrong_pos_short_err.vv parser: proper error when declaring struct embedding at the wrong pos (#7920) 2021-01-06 15:46:36 +01:00
struct_field_expected.out vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
struct_field_expected.vv vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
struct_field_mut_type_err.out parser: check error for struct field type using 'mut' (#13847) 2022-03-28 18:13:38 +03:00
struct_field_mut_type_err.vv parser: check error for struct field type using 'mut' (#13847) 2022-03-28 18:13:38 +03:00
struct_field_unknown_module_a.out parser: improve error message for `mod.unknownsubmod.Type` (#9976) 2021-05-04 11:31:31 +03:00
struct_field_unknown_module_a.vv parser: improve error message for `mod.unknownsubmod.Type` (#9976) 2021-05-04 11:31:31 +03:00
struct_field_unknown_module_b.out parser: improve error message for `mod.unknownsubmod.Type` (#9976) 2021-05-04 11:31:31 +03:00
struct_field_unknown_module_b.vv parser: improve error message for `mod.unknownsubmod.Type` (#9976) 2021-05-04 11:31:31 +03:00
struct_field_unknown_module_c.out parser: improve error message for `mod.unknownsubmod.Type` (#9976) 2021-05-04 11:31:31 +03:00
struct_field_unknown_module_c.vv parser: improve error message for `mod.unknownsubmod.Type` (#9976) 2021-05-04 11:31:31 +03:00
struct_module_section.out parser: support `module:` for immutable private struct fields (#8140) 2021-01-17 05:39:44 +01:00
struct_module_section.vv tests: use u8 everywhere 2022-04-17 12:14:29 +02:00
struct_update_err.out parser: improve printing of unexpected tokens (#8654) 2021-02-09 17:07:30 +02:00
struct_update_err.vv parser: struct updating syntax with `Abc{...oldabc newfield: val}` (#7865) 2021-01-04 20:19:03 +02:00
sum_type_exists_err.out v.parser: add check for existing type on sum type declaration (#11054) 2021-08-04 18:14:16 +03:00
sum_type_exists_err.vv v.parser: add check for existing type on sum type declaration (#11054) 2021-08-04 18:14:16 +03:00
too_many_generics_err.out all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
too_many_generics_err.vv all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
type_alias_existing_type_err.out v.parser: add check for existing type on sum type declaration (#11054) 2021-08-04 18:14:16 +03:00
type_alias_existing_type_err.vv parser: differentiate recursive alias & existing type err + rune fix 2020-12-16 18:03:49 +11:00
type_alias_same_type_err.out parser: differentiate recursive alias & existing type err + rune fix 2020-12-16 18:03:49 +11:00
type_alias_same_type_err.vv parser: differentiate recursive alias & existing type err + rune fix 2020-12-16 18:03:49 +11:00
uncomplete_module_call_err.out parser: improve printing of unexpected tokens (#8654) 2021-02-09 17:07:30 +02:00
uncomplete_module_call_err.vv parser: fix error when accessing module without name after dot (#7530) 2020-12-25 16:50:08 +02:00
unexpected_expr.out parser: improve printing of unexpected tokens (#8654) 2021-02-09 17:07:30 +02:00
unexpected_expr.vv parser: improve printing of unexpected tokens (#8654) 2021-02-09 17:07:30 +02:00
unexpected_keyword.out parser: fix method name test 2021-02-04 22:25:58 +01:00
unexpected_keyword.vv parser: improve the error message for unexpected keywords 2021-01-25 15:29:07 +02:00
unexpected_name_err.out parser: fix checking unexpected name (#12233) 2021-10-19 12:27:59 +03:00
unexpected_name_err.vv parser: fix checking unexpected name (#12233) 2021-10-19 12:27:59 +03:00
unexpected_token.out v.scanner: fix error messages with unexpected token `?` (#11428) 2021-09-07 20:46:56 +03:00
unexpected_token.vv v.scanner: fix error messages with unexpected token `?` (#11428) 2021-09-07 20:46:56 +03:00

README.md

Put here tests, ensuring that the v's parser errors for certain situations.