Felipe Pena
|
413ffbfc3b
|
v: allow alias as fixed array on return (#18817)
|
2023-07-13 11:58:49 +03:00 |
|
Swastik Baranwal
|
0498f4c40f
|
checker: add an error for $tmpl function type mismatches (#18826)
|
2023-07-09 19:40:10 +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 |
|
phoebe
|
1db67f7505
|
checker: allow no return in compile_error else block (#18758)
|
2023-07-04 06:44:24 +03:00 |
|
yuyi
|
f122703a43
|
v: use autocasting in if conditions inside the compiler (#18708)
|
2023-06-29 19:37:36 +03:00 |
|
Turiiya
|
867f4376d8
|
checker: abstract repetitive error handling (#18507)
|
2023-06-21 12:13:18 +03:00 |
|
yuyi
|
acfe785597
|
all: clean up with is_any_kind_of_pointer() (#18467)
|
2023-06-17 14:10:06 +03:00 |
|
yuyi
|
05f2798c88
|
ast: remove redundant method is_real_pointer() (#18453)
|
2023-06-16 09:48:24 +03:00 |
|
Felipe Pena
|
9d9785cc05
|
all: allow fixed array returns (#17931)
|
2023-05-18 11:30:49 +02:00 |
|
Felipe Pena
|
ee9cfb6df4
|
checker: add check for mixing multi-return results with other types in return statements (fix #17501) (#18067)
|
2023-04-27 16:50:09 +03:00 |
|
yuyi
|
eb410bf283
|
checker: minor cleanup in return_stmt() (#17995)
|
2023-04-21 19:32:59 +03:00 |
|
yuyi
|
237f9446e2
|
checker, cgen: fix type alias of pointer (#17904)
|
2023-04-07 10:19:25 +02:00 |
|
yuyi
|
4f532c0830
|
checker: fix fn returning alias of pointer (fix #17861) (#17864)
|
2023-04-03 19:32:55 +03:00 |
|
Alexander Medvednikov
|
6756d28595
|
all: 2023 copyright
|
2023-03-28 22:55:57 +02:00 |
|
Felipe Pena
|
72cbca9653
|
checker: fix and improve return stmt error messages (#17477)
|
2023-03-04 09:32:55 +02:00 |
|
yuyi
|
17000ef7b6
|
checker: check option fn returning error (fix #17423) (#17438)
|
2023-03-02 15:49:50 +02:00 |
|
Felipe Pena
|
2879c5110c
|
cgen, check, parser: implement first-class option type (#17017)
|
2023-02-18 11:45:01 +02:00 |
|
Felipe Pena
|
71e8fc8b38
|
checker: fix comptime if branch checking (#16938)
|
2023-01-14 15:06:38 +02:00 |
|
JalonSolov
|
90941b3b1f
|
all: change optional to option (#16914)
|
2023-01-09 09:36:45 +03:00 |
|
yuyi
|
241109516f
|
checker, cgen: fix aliased optional or result fn call (#16908)
|
2023-01-08 20:04:17 +02:00 |
|
Delyan Angelov
|
c77344e0a2
|
checker: add a return *x suggestion, to the error fn ... expects you to return a non reference type ..., but you are returning ... instead
|
2022-12-02 10:40:36 +02:00 |
|
yuyi
|
d257e43932
|
checker: fix 'return none' in void optional function (#16545)
|
2022-11-28 10:29:02 +02:00 |
|
yuyi
|
27cdf5ae0e
|
checker: minor cleanup in checker module (remove pub from most of checker's methods) (#16505)
|
2022-11-22 17:50:26 +02:00 |
|
Swastik Baranwal
|
dc81d755e8
|
checker: disallow using unsafe { none } (#16431)
|
2022-11-15 18:55:07 +02:00 |
|
yuyi
|
017ace6ea7
|
vfmt: change all '$expr' to '${expr}' (#16428)
|
2022-11-15 16:53:13 +03:00 |
|
Delyan Angelov
|
bbae7a705f
|
checker: fix incomplete implicit ast.CastExpr{} replacements
|
2022-11-10 13:59:22 +02:00 |
|
yuyi
|
ee782e9119
|
checker: fix return error with multi_return optional (#16250)
|
2022-10-29 06:34:45 +03:00 |
|
yuyi
|
03bef24456
|
checker: fix returning embedded error result (#16208)
|
2022-10-25 18:17:48 +03:00 |
|
Delyan Angelov
|
eda65ad660
|
parser,checker,builder: make the checker more robust with -check over files with syntax/parsing errors
|
2022-10-19 18:14:58 +03:00 |
|
yuyi
|
ce1ba2ad02
|
checker: check fn returning fn type mismatch (fix #15988) (#15997)
|
2022-10-08 19:28:41 +03:00 |
|
Delyan Angelov
|
5cc9d7b347
|
checker: remove too vague notice about signed expressions while returning unsigned number types
|
2022-09-25 11:03:23 +03:00 |
|
shove
|
bd3c9e888d
|
checker: fix missing checker error for fn abc() u64 { return -1 } (fix #15789) (#15795)
|
2022-09-17 20:59:52 +03:00 |
|
Delyan Angelov
|
7e69619add
|
builtin, compiler: replace isnil(x) calls with x == unsafe { nil } (a little faster without -prod) (#15759)
|
2022-09-15 14:59:37 +03:00 |
|
yuyi
|
40c0a8cbaf
|
parser, checker, cgen: implement generics anon fn (#15529)
|
2022-08-25 14:12:56 +03:00 |
|
yuyi
|
c662431cfd
|
checker: check unsafe array assign (fix #9651) (#15515)
|
2022-08-25 08:52:13 +03:00 |
|
yuyi
|
584597aa3d
|
checker: check mismatch of return result type (#15413)
|
2022-08-12 17:23:14 +03:00 |
|
Alexander Medvednikov
|
9099594a49
|
all: wrap up unsafe { nil } (p. 3)
|
2022-07-21 21:01:30 +03:00 |
|
shove
|
032cb3f115
|
checker: fix the type of ComptimeCall (fixes #14996) (#15013)
|
2022-07-11 20:08:01 +03:00 |
|
Delyan Angelov
|
f7995c8916
|
checker: fix error position in fn f() int { return 1,2 }
|
2022-05-27 16:53:24 +03:00 |
|
Delyan Angelov
|
410b57b2fa
|
all: add support for struct field deprecation (#14527)
|
2022-05-26 00:44:18 +03:00 |
|
Delyan Angelov
|
b7ca4c1668
|
checker: fix a compiler panic on fntest()?(&int,&int){return test()?}
|
2022-05-12 11:36:32 +03:00 |
|
Daniel Däschle
|
76cdf75299
|
builtin,cgen: rename Option to _option (#14317)
|
2022-05-06 19:25:54 +03:00 |
|
Daniel Däschle
|
89fe82b732
|
checker: fix returning error on reference results (#14313)
|
2022-05-05 17:02:49 +03:00 |
|
Daniel Däschle
|
08fd0ce0de
|
all: basic implementation of result type (#14140)
|
2022-04-30 01:59:14 +03:00 |
|
yuyi
|
5dce091379
|
checker, cgen: fix generic empty interface to multi struct (#14132)
|
2022-04-22 11:02:51 +03:00 |
|
yuyi
|
6164654d11
|
checker: check fn return type mismatch (#14081)
|
2022-04-19 13:04:41 +03:00 |
|
yuyi
|
0497b885dc
|
checker: minor cleanup in find_unreachable_statements_after_noreturn_calls() (#13903)
|
2022-04-03 11:19:19 +03:00 |
|
yuyi
|
0bf0c73a49
|
checker: fix error for returning optional (#13902)
|
2022-04-02 17:25:01 +03:00 |
|
Alexander Medvednikov
|
36ec47cd20
|
all: replace "NB:" with "Note:" (docs/comments)
|
2022-03-06 20:01:22 +03:00 |
|
div72
|
cec7e91714
|
v.parser, v.checker, v.gen: add support for [translated] tag (#13373)
|
2022-02-06 00:16:02 +02:00 |
|