yuyi
|
7a5722c885
|
parser: check assign_stmt of undefined variable (#8366)
|
2021-01-27 13:52:10 +01:00 |
Delyan Angelov
|
e5a84719ca
|
all: require calling `optfn() ?` / `optfn() or {...}` for `fn optfn() ? {}`
|
2021-01-26 16:43:17 +02:00 |
spaceface
|
5f2b2df546
|
checker: don't disallow defining methods on interfaces (#8335)
|
2021-01-26 11:56:17 +01:00 |
zakuro
|
3959ba5751
|
checker: make a calling no-body function a checker error (#8265)
|
2021-01-26 11:19:48 +01:00 |
Lukas Neubert
|
2007dbc7b5
|
fmt: put the opening brace on a new line again for infix (#8336)
|
2021-01-26 11:19:32 +01:00 |
Daniel Däschle
|
7bb9c0e7b3
|
checker: fix multi generic args (#8347)
|
2021-01-26 09:37:48 +02:00 |
spaceface
|
daff085033
|
checker: fix treating C structs with capitalized fields as embeds (#8343)
|
2021-01-25 18:47:14 +02:00 |
Daniel Däschle
|
006a11454f
|
cgen: fix generic type $else $if (#8339)
|
2021-01-25 17:08:02 +01:00 |
Delyan Angelov
|
a5b10b5539
|
parser: improve the error message for unexpected keywords
|
2021-01-25 15:29:07 +02:00 |
Delyan Angelov
|
728344ff65
|
ci: fix `v test-cleancode`
|
2021-01-25 12:55:01 +02:00 |
Delyan Angelov
|
94fd3ff431
|
checker: remove the 'in module main cannot be declared public' error/warning
|
2021-01-25 12:55:00 +02:00 |
spaceface
|
4be45e8d02
|
checker: add mutability checks for interface fields; add tests (#8312)
|
2021-01-24 22:11:17 +01:00 |
Uwe Krüger
|
815104e5d0
|
parser: parse `-1` and `-13.3` as number literals (#8321)
|
2021-01-24 22:09:51 +01:00 |
Alexander Medvednikov
|
12ff1c2702
|
doc: document the new const rule
|
2021-01-24 10:23:52 +01:00 |
Alexander Medvednikov
|
80e6b090ea
|
checker: remove an obsolete const test
|
2021-01-24 10:17:36 +01:00 |
Alexander Medvednikov
|
8bcb6c10cc
|
checker: remove duplicate const error; fmt: force full path to consts
|
2021-01-24 10:01:13 +01:00 |
Daniel Däschle
|
35432c5e92
|
gen: fix generic multi return (#8303)
|
2021-01-23 23:41:32 +02:00 |
Uwe Krüger
|
38880b23eb
|
checker: allow `a[i]` for `shared` arrays outside `unsafe` (#8292)
|
2021-01-23 13:33:32 +01:00 |
yuyi
|
b8857baa98
|
parser: fix map_init position (#8293)
|
2021-01-23 13:33:19 +01:00 |
yuyi
|
5ee3fecf60
|
checker: check for mut val in immutable obj (#8285)
|
2021-01-23 10:40:17 +01:00 |
Lukas Neubert
|
8b61891348
|
fmt: smarter if condition wrapping (#8201)
|
2021-01-23 10:33:22 +02:00 |
zakuro
|
9812230847
|
checker: make the no-body main function a checker error (#8211)
|
2021-01-23 10:30:26 +02:00 |
Daniel Däschle
|
c5c7addb88
|
checker: improve infer generic (#8281)
|
2021-01-23 10:19:08 +02:00 |
spaceface
|
c2d501e8a9
|
all: implement interface fields (#8259)
|
2021-01-23 08:57:17 +02:00 |
Louis Schmieder
|
e06e8b10cd
|
orm: fix empty struct and simplify (#8246)
|
2021-01-22 23:28:26 +01:00 |
Daniel Däschle
|
dbf84520f1
|
all: update assoc syntax (#8274)
|
2021-01-22 23:24:48 +01:00 |
Daniel Däschle
|
500ebf77e4
|
all: implement multiple generics (#8231)
|
2021-01-22 13:49:56 +01:00 |
Delyan Angelov
|
b10b76bb0d
|
parser: remove the 'non-string keys are work in progress' warning
|
2021-01-22 12:25:17 +02:00 |
Nick Treleaven
|
72168cd6bc
|
parser: support `mut:` section in the interface methods, and a mut interface fn modifier (#8092)
|
2021-01-22 10:02:28 +02:00 |
zakuro
|
1b09954622
|
parser: improve the position of mut receiver warning / error (#8240)
|
2021-01-22 09:38:37 +02:00 |
Uwe Krüger
|
925ffd76f4
|
sync/channels: expose `ch.closed` as `bool` pseudo attribute (#8244)
|
2021-01-22 09:37:29 +02:00 |
zakuro
|
522d875489
|
checker: make it an error, to use ident outside of anon fn (#8232)
|
2021-01-22 09:24:49 +02:00 |
Daniel Däschle
|
3ee7bc960f
|
checker/gen: fix smartcast pointer sumtype (#8260)
|
2021-01-21 22:31:25 +02:00 |
Louis Schmieder
|
6b1956fb60
|
checker: fix warning at comptime call (#8248)
|
2021-01-21 21:36:11 +02:00 |
Daniel Däschle
|
c6d6690064
|
checker: fix if expr infix (#8215)
* checker: fix if expr infix
* remove debugger code
* fmt
* remove debug
* add test cases
|
2021-01-21 12:42:24 +01:00 |
zakuro
|
29b3077ea1
|
checker: make negative literal index a checker error (#8242)
|
2021-01-21 13:27:16 +02:00 |
Louis Schmieder
|
4045ec1ca8
|
checker: remove vweb unused vars (#8180)
|
2021-01-21 11:09:19 +01:00 |
zakuro
|
0c249fa040
|
parser: improve anon fn pos (#8210)
|
2021-01-21 11:01:40 +01:00 |
spaceface
|
f059a9e96c
|
builtin: fix sorting arrays of primitives (#8204)
|
2021-01-20 23:19:35 +02:00 |
yuyi
|
190bb38087
|
checker: check fixed array size (#8224)
|
2021-01-20 23:17:49 +02:00 |
Delyan Angelov
|
d9532eda30
|
checker: error on a.slice(x,y) outside `builtin`
|
2021-01-19 15:55:52 +02:00 |
Tim Basel
|
129eee346b
|
fmt: keep single empty lines (#8189)
|
2021-01-19 14:49:40 +01:00 |
Delyan Angelov
|
85bcfdd636
|
checker: handle `a[i] or { statements expr }` the same as the other or blocks
|
2021-01-19 09:28:34 +02:00 |
Lukas Neubert
|
b44c08aff0
|
fmt: wrap match branch expressions (#8190)
|
2021-01-19 06:16:42 +01:00 |
Uwe Krüger
|
b74690cbec
|
builtin, checker, cgen: implement `x = a[k] or { ... }` for maps and arrays (#8193)
|
2021-01-19 06:06:57 +01:00 |
Uwe Krüger
|
5cc591b2b6
|
all: support generic `chan` (#8188)
|
2021-01-18 18:37:45 +01:00 |
Swastik Baranwal
|
6f1ae65811
|
parser: add a warning for only else branch in match (#8185)
|
2021-01-18 18:31:36 +02:00 |
Lukas Neubert
|
ac2c3847af
|
all: update copyright to 2019-2021 (#8029)
|
2021-01-18 13:20:06 +01:00 |
Lukas Neubert
|
16c9cbce7c
|
fmt: correctly increase f.line_len for write_indent (#8174)
|
2021-01-18 06:02:29 +01:00 |
Delyan Angelov
|
75af639721
|
checker: allow ptr++/ptr-- in unsafe{}, for any kind of pointer, except voidptr
|
2021-01-17 18:09:25 +02:00 |