yuyi
|
f4586b1577
|
parser: make sure interface field names use uppercase letters (#14228)
|
2022-04-30 16:26:27 +02:00 |
Daniel Däschle
|
85cb0a8c85
|
all: basic implementation of result type (#14140)
|
2022-04-30 16:26:27 +02:00 |
StunxFS
|
3e4834aebf
|
checker: check for reserved type names in `for in` (fix #14072) (#14212)
|
2022-04-30 16:26:27 +02:00 |
yuyi
|
2109a6a85c
|
parser: check interface methods name (fix #14217) (#14218)
|
2022-04-29 21:38:24 +02:00 |
yuyi
|
d1a0ac26fd
|
checker: check struct field name using uppercase letters (#14220)
|
2022-04-29 21:38:24 +02:00 |
yuyi
|
bf75a873b5
|
checker: check error in for_c_stmt with optional call (#14190)
|
2022-04-29 21:38:22 +02:00 |
yuyi
|
549735fbff
|
checker: check error for array.index() argument (#14147)
|
2022-04-25 19:07:31 +02:00 |
Nick Treleaven
|
13902a827b
|
checker: error if smaller signed == unsigned (#14078)
|
2022-04-25 19:07:30 +02:00 |
yuyi
|
0b7c3a6035
|
checker: simplify checking array.contains() argument (#14133)
|
2022-04-25 19:07:28 +02:00 |
Delyan Angelov
|
34961a23b4
|
ast: allow `a := match x { 101 { ... for {...} ... y }`
|
2022-04-25 19:07:26 +02:00 |
yuyi
|
eca95dcedc
|
checker: check array builtin method's arguments (#14119)
|
2022-04-25 19:07:26 +02:00 |
yuyi
|
8824f5f103
|
checker: check map builtin method's arguments (#14120)
|
2022-04-25 19:07:26 +02:00 |
mjh
|
43e810024c
|
datatypes: fix bst child access, when .root is 0 (#14080)
|
2022-04-21 10:34:34 +02:00 |
yuyi
|
9c7da323f1
|
checker: check error for arguments of array.contains() (#14102)
|
2022-04-21 10:34:33 +02:00 |
Delyan Angelov
|
b03aa06152
|
checker, cgen: add support for #insert, to simplify bootstrapping V
|
2022-04-21 10:34:33 +02:00 |
JalonSolov
|
43efdd464e
|
checker: fix error message when number of generic parameters is incorrect (#14090)
|
2022-04-21 10:34:33 +02:00 |
yuyi
|
33005becf1
|
checker: check fn return type mismatch (#14081)
|
2022-04-19 12:42:44 +02:00 |
Nick Treleaven
|
f291e5fdd8
|
checker: Revert part of small_unsigned == signed (#13967) (#14075)
`gcc -W` doesn't error for e.g. u16 == i32, only for u32 == i16.
Any u16 value can fit in an i32.
|
2022-04-19 12:42:43 +02:00 |
yuyi
|
898167f986
|
checker: check error for fn decl with optional arguments (#14076)
|
2022-04-19 12:42:43 +02:00 |
Vincenzo Palazzo
|
9f9d24d616
|
checker: ensure that the variant SubType exists (#14053)
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
|
2022-04-17 12:14:33 +02:00 |
Delyan Angelov
|
cb6d94bb47
|
checker: fix tests (adjust byte to u8 in .out files too)
|
2022-04-17 12:14:30 +02:00 |
Alexander Medvednikov
|
de310491bb
|
tests: use u8 everywhere
|
2022-04-17 12:14:29 +02:00 |
Nick Treleaven
|
c780de6282
|
checker: disallow 'small_unsigned == signed' (#13967)
|
2022-04-12 19:37:30 +03:00 |
yuyi
|
fa66183f43
|
checker: check error for map of generic struct init (#13999)
|
2022-04-11 10:07:23 +03:00 |
yuyi
|
93a5d03182
|
parser: improve embedded struct parsing/better error for `Architecture []string` (#13995)
|
2022-04-10 10:24:36 +03:00 |
yuyi
|
473bc0254d
|
checker: check error for array of generic struct init (#13987)
|
2022-04-09 21:50:34 +03:00 |
Vincenzo Palazzo
|
2d867a2766
|
ast: fix reported errors, when arrays of types defined in modules are involved (#13952)
|
2022-04-08 17:38:34 +03:00 |
Alexander Medvednikov
|
cc227d8520
|
checker: fix non-numeric type check for translated code
|
2022-04-04 04:59:14 +03:00 |
Delyan Angelov
|
44603f8e59
|
checker: add suggestions for misspelled `mod.func_name()` calls
|
2022-04-03 20:07:52 +03:00 |
Vincenzo Palazzo
|
d7817863c6
|
checker: type inference over a generic type should compile (#13824)
|
2022-04-01 19:31:27 +03:00 |
Delyan Angelov
|
cc637e5ee8
|
checker: make the misssing shared/mut modifer in fn and method calls error clearer
|
2022-03-30 01:45:40 +03:00 |
yuyi
|
fd34ebd84e
|
checker: check the count of generics in fn arguments (#13855)
|
2022-03-29 10:04:19 +03:00 |
Nick Treleaven
|
a4ab3c1f14
|
checker: disallow `mut_ptr = &immutable_var` (#13814)
|
2022-03-24 20:43:25 +02:00 |
Delyan Angelov
|
9bbb52e9cc
|
checker: add a check for `dump(c)`, where `typeof(c) == "char"`
|
2022-03-24 12:11:59 +02:00 |
Vincenzo Palazzo
|
8b072aa962
|
checker: check if generic values have the same types (#13718)
|
2022-03-23 09:13:10 +02:00 |
yuyi
|
0337882240
|
checker: check redefine global 'main' function (#13803)
|
2022-03-22 17:39:12 +02:00 |
yuyi
|
d9cca53bd0
|
checker: check error for index of optional (#13785)
|
2022-03-21 10:17:57 +02:00 |
yuyi
|
0a78847782
|
checker: check error for unknown type in anon fn field of struct (#13778)
|
2022-03-20 13:28:35 +02:00 |
yuyi
|
8c3687aa10
|
checker: check error for struct field init with nobody anon fn (#13777)
|
2022-03-20 13:04:31 +02:00 |
yuyi
|
5f79fa8a30
|
checker: handle invalid smartcast with if/match none ident or selector (fix #12317) (#13762)
|
2022-03-18 17:50:54 +03:00 |
Delyan Angelov
|
817bedec5d
|
checker: show available sumtype variants in match branches on typos
|
2022-03-18 11:50:28 +02:00 |
yuyi
|
33167960ed
|
checker: check the sumtype mismatch returned by match expr (#13751)
|
2022-03-16 09:31:38 +02:00 |
yuyi
|
49155ec312
|
parser: notice unnecessary parenthesis of reference (fix #11179) (#13739)
|
2022-03-15 16:11:53 +02:00 |
yuyi
|
92cafd8851
|
checker: check invalid 'mut' keyword in infix expr (#13742)
|
2022-03-15 14:50:17 +03:00 |
Nick Treleaven
|
34dd4f34ab
|
checker: fix cgen error on sliced references (#13736)
|
2022-03-14 19:52:37 +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
|
4c33003f86
|
checker: check error for infix compare optional (#13701)
|
2022-03-09 20:20:21 +02:00 |
yuyi
|
e6270b05dc
|
checker: check unsigned integer compared with negative value (#13670)
|
2022-03-07 10:26:40 +02:00 |
Alexander Medvednikov
|
36ec47cd20
|
all: replace "NB:" with "Note:" (docs/comments)
|
2022-03-06 20:01:22 +03:00 |