1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

32 Commits

Author SHA1 Message Date
Swastik Baranwal
49aac93d87
checker: disallow literals on the left side of assignments (#15999) 2022-10-08 19:27:30 +03:00
yuyi
659bd1a428
ast, checker, cgen: fix generic fn/method with comptime for/if (fix #15905) (#15910) 2022-09-30 09:40:30 +10:00
ChAoS_UnItY
70de4e1009
checker: fix no error on plus-assigning array (fix #15544) (#15552) 2022-08-26 23:11:23 +03:00
StunxFS
b83dd86d65
checker: check error for simple assignment with dumping of multireturn value (#15512) 2022-08-26 07:08:05 +03:00
yuyi
c662431cfd
checker: check unsafe array assign (fix #9651) (#15515) 2022-08-25 08:52:13 +03:00
Delyan Angelov
0133ff2cbf
checker: use reserved_type_names_chk.matches(word) instead of word in reserved_type_names 2022-07-29 23:23:34 +03:00
Delyan Angelov
474033c055
ci: allow unsafe { a := nil }, add separate nil case in pointer_ops.vv, to test the nil checker errors independently from the voidptr ones 2022-07-21 22:52:38 +03:00
Alexander Medvednikov
a68d03ac59 checker: allow x := unsafe { nil } 2022-07-21 20:56:24 +03:00
Alexander Medvednikov
caa0c2f153 vfmt: voidptr(0) => unsafe { nil } (p.1) 2022-07-21 20:46:01 +03:00
Alexander Medvednikov
fd47385ff2 checker: check untyped nil in assignment 2022-07-19 13:31:10 +03:00
yuyi
c160ba2a8d
checker: stricter mutable reference check (fix #14803) (#14805) 2022-06-21 13:23:21 +03:00
yuyi
a46cf10e92
checker: fix declare assign literal with closure (#14544) 2022-05-28 11:50:37 +03:00
crthpl
95d24e543d
checker, cgen: fix shared non-decl assignment (#14466) 2022-05-20 02:58:11 +03:00
yuyi
99eb9fdaab
checker: fix error for fn with array of aliases argument (#14123) 2022-04-21 12:52:09 +03:00
yuyi
0260c2a552
checker: minor cleanup in assign_stmt() (#14107) 2022-04-20 21:03:41 +03:00
yuyi
0c3b69eaef
checker: fix error for assign array of aliases (#14096) 2022-04-20 13:08:47 +03:00
crthpl
b232a3b0d1
cgen: fix .filter() and .map() on shared arrays (#13954) 2022-04-07 18:05:11 +03:00
Nick Treleaven
a4ab3c1f14
checker: disallow mut_ptr = &immutable_var (#13814) 2022-03-24 20:43:25 +02:00
yuyi
f7feb634d2
checker: fix error for if mut with immutable variable (#13728) 2022-03-13 16:33:50 +02:00
yuyi
27f9bc9ba0
checker: check error for match mut with immutable variable (fix #9704 #8976) (#13725) 2022-03-13 09:53:29 +02:00
yuyi
81c787ef91
checker: fix match expr with assign sumtype variable (#13614) 2022-02-28 11:37:59 +03:00
yuyi
6486fffc5a
checker: cleanup map = {} processing (#13563) 2022-02-22 16:04:54 +02:00
yuyi
7178367de0
all: fix error for comptime for in field with generic fn (fix #13409) (#13439) 2022-02-11 22:00:13 +02:00
Tim Basel
9d0a5942ac
builtin: change IError msg and code to methods + fix vlib, add a deprecation notice for the old usages (#13041) 2022-02-11 15:52:33 +02:00
Vincenzo Palazzo
d46ac40758
checker: add error for assigning none values (#13383) 2022-02-06 16:08:23 +02:00
div72
cec7e91714
v.parser, v.checker, v.gen: add support for [translated] tag (#13373) 2022-02-06 00:16:02 +02:00
yuyi
291a1ffd8d
token: rename Position to Pos, rename position() to pos() (#13279) 2022-01-26 12:36:28 +02:00
yuyi
6c1ae4f689
ast: simplify mktyp() (#13028) 2022-01-04 18:37:18 +02:00
Alexander Medvednikov
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
yuyi
7c85c2ab1f
checker: fix error of map selector assign (#12902) 2021-12-20 08:09:15 +02:00
yuyi
cd0b581445
ast: rename 'table.get_type_symbol()' to 'table.sym()' and more related calls (#12898) 2021-12-19 18:25:18 +02:00
Alexander Medvednikov
eaf0f9b4c1 checker: split up checker.v: assign.v, orm.v, comptime.v; c2v fixes 2021-12-11 10:23:58 +03:00