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

212 Commits

Author SHA1 Message Date
Felipe Pena
413ffbfc3b
v: allow alias as fixed array on return (#18817) 2023-07-13 11:58:49 +03:00
yuyi
17b576227f
checker: change 'fail_if_immutable(expr_ ast.Expr)' to 'fail_if_immutable(mut expr ast.Expr)' (#18811) 2023-07-07 23:27:52 +03:00
Felipe Pena
8f7f2c8cf7
checker: fix try_pop with fixed array (#18789) 2023-07-06 02:34:22 +03:00
Felipe Pena
072364fc59
checker: fix interface param resolution (#18780) 2023-07-05 23:26:44 +03:00
yuyi
7f8749afdd
checker: change 'expr(expr_ ast.Expr)' to 'expr(mut expr ast.Expr)' (#18781) 2023-07-05 17:02:22 +03:00
yuyi
c1550b3efa
ast, checker: change stmt(node_ ast.Stmt) to stmt(mut node ast.Stmt) (#18756) 2023-07-03 23:10:00 +03:00
Felipe Pena
329e063752
checker: fix wrong interface parameter resolution for anonymous fn (#18724) 2023-07-02 14:18:53 +03:00
Felipe Pena
89c56fb5ee
parser, checker: fix static method naming and generic call (#18694) 2023-06-28 07:07:07 +03:00
yuyi
7c1ace02f3
checker: fix a bug checking generic closures (#18489) 2023-06-19 18:22:25 +03:00
Turiiya
396d46d9ca
ast, builder, checker, parser: fix typos (#18480) 2023-06-18 22:36:17 +03:00
Delyan Angelov
017cc6738b
checker: add a hard to reach limit of 1_000_000 iterations for resolving all generics (usually <10 are enough) (#18477) 2023-06-17 22:29:36 +03:00
yuyi
acfe785597
all: clean up with is_any_kind_of_pointer() (#18467) 2023-06-17 14:10:06 +03:00
Louis Schmieder
dbd251793e
all: add $res compile time function to get returned value in defer block (#18382) 2023-06-17 14:08:50 +03:00
yuyi
05f2798c88
ast: remove redundant method is_real_pointer() (#18453) 2023-06-16 09:48:24 +03:00
yuyi
3fb31b971d
checker: clean up method_call() (#18443) 2023-06-14 14:46:00 +03:00
yuyi
5e12d3483c
checker: fix generic fn with nested generic fn call (fix #18285) (#18314) 2023-06-02 10:52:29 +03:00
yuyi
4dc338863c
checker: fix json decode with generic array of struct (fix #18300) (#18308) 2023-05-30 14:25:33 +02:00
Turiiya
80d404c220
checker: replace as cast with a safer type check is (smart cast) (#18286) 2023-05-28 05:41:46 +02:00
Alexander Medvednikov
45f16a2640 all: coroutines (part 1) 2023-05-27 23:33:46 +02:00
Felipe Pena
598673314b
json.decode: add check for shared variable (#18237) 2023-05-24 06:47:09 +03:00
yuyi
6698fe4f60
checker, cgen: fix contains() with array of interfaces (#18241) 2023-05-23 14:46:14 +02:00
yuyi
e2f18fc9cc
checker, cgen: fix array of interfaces index() (#18232) 2023-05-22 16:31:22 +03:00
Felipe Pena
9d9785cc05
all: allow fixed array returns (#17931) 2023-05-18 11:30:49 +02:00
Felipe Pena
1e56a69c02
checker, parser: save shared/atomic specifier for ast.Param (#18124) 2023-05-09 00:22:22 +03:00
Felipe Pena
063dfa0ab9
checker: missing mutability check for array.delete calls (#18096) 2023-05-02 22:48:40 +03:00
Felipe Pena
638f0f69ed
checker: fix wrong error message about missing shared on parameter signature (fix #18087) (#18091) 2023-05-02 15:52:40 +03:00
Felipe Pena
c63902baf0
checker, cgen: fix generic resolution for comptimeselector and indirection checking on generic funcs (#18043) 2023-04-26 22:49:50 +03:00
yuyi
6cc420880f
ast, checker, cgen: fix generic array of threads (fix #17976) (#17986) 2023-04-18 12:43:30 +03:00
Felipe Pena
a49cecc2b4
cgen: fix array map with it selector expr, used as an it method closure (#17968) 2023-04-16 14:41:07 +03:00
yuyi
92cb7468ce
ast: minor optimization of clear_flags() (#17938) 2023-04-13 07:27:26 +02:00
Felipe Pena
6a60db8768
cgen, checker: fix generic/comptime parameter concrete type resolution in some cases (#17762) 2023-04-10 10:42:49 +03:00
Swastik Baranwal
65abfa8219
checker: disallow printing void (#17901) 2023-04-07 06:40:11 +02:00
Swastik Baranwal
1dcec62c19
checker: disallow top level decl builtin fn (#17857) 2023-04-03 17:30:05 +03:00
yuyi
a9f55de352
checker: fix generic array delete in skip_unused mode (#17759) 2023-03-25 08:31:25 +02:00
Felipe Pena
a552a79ca8
checker: fix comptime concrete type register (fix #17657) (#17659) 2023-03-22 16:16:19 +02:00
yuyi
d349c1d86d
checker: check generic fn call argument type mismatch (#17680) 2023-03-16 21:19:03 +02:00
Felipe Pena
2656ce9522
checker: fix missing check for [export] attr on a fn, without parameter (#17653) 2023-03-15 17:17:45 +02:00
Felipe Pena
9ad1c2f922
checker: fix missing option function field checking (#17601) 2023-03-13 15:05:56 +01:00
Felipe Pena
a98376025e
checker: fix missing re-check of recursive generic function (fix #16962) (#17592) 2023-03-11 11:57:41 +02:00
Felipe Pena
c5832379e7
checker, cgen, parser: fix Option/Result error messages (capitalized) (#17486) 2023-03-04 09:02:57 +03:00
Felipe Pena
ce1978ecde
parser: disallow defining methods on option receivers - fn (x ?Type) method() { (#17351) 2023-02-19 15:00:29 +02:00
Felipe Pena
2879c5110c
cgen, check, parser: implement first-class option type (#17017) 2023-02-18 11:45:01 +02:00
Felipe Pena
04e00a46d4
cgen, checker: allow array decompose on non-variadic func call (e.g call(...arr)) (#17284) 2023-02-13 13:13:52 +02:00
ChAoS_UnItY
404a9aa442
v: forbid function parameter names, shadowing imported module names (#17210) 2023-02-08 20:37:04 +02:00
yuyi
7090e905f7
checker: fix array filter of fn mut argument (#17231) 2023-02-06 16:37:37 +02:00
yuyi
e8ca2e62a7
checker: fix if guard with struct option fntype field (#17220) 2023-02-04 11:38:07 +02:00
Felipe Pena
11f734296f
checker: fix generic array clone (#17153) 2023-01-30 11:27:17 +02:00
l-m
c14d15bd3d
ast,checker,parser,cgen: [c:'sym'] rework; allow compiling code from .v files tagged with [translated] without needing -translated too (#17125) 2023-01-26 17:47:38 +02:00
yuyi
b2dac566b0
checker: check fn call using 'none' as argument (#17070) 2023-01-22 14:58:34 +02:00
Delyan Angelov
92c7e3f7ff
checker: relax checks on operators done on aliases of primitives like int, u8, string etc.; add tests (#17029) 2023-01-19 11:45:56 +02:00