Alexander Ivanov
|
30e53c95c7
|
checker: handle `if _likely_(x is Interface) {` from #11485 (#11519)
|
2021-09-17 21:01:12 +03:00 |
yuyi
|
fb75d528eb
|
builder: remove panics, when cleaning up tmp files after tests (#11525)
|
2021-09-17 20:56:33 +03:00 |
yuyi
|
467afad065
|
cgen: use `if foo in [TypeA, TypeB]` in cgen.v (#11518)
|
2021-09-16 19:26:53 +03:00 |
Delyan Angelov
|
0a18690a4f
|
v.gen.c: fix assert `f().len == 1` calling f() twice (closes issue 11501)
|
2021-09-16 19:01:35 +03:00 |
playX
|
c175b4fd48
|
v.gen.js: refactor code, fix alias codegen, `-stats` now again works with tests on the JS backend (#11512)
|
2021-09-16 14:00:15 +03:00 |
yuyi
|
d5e00b0920
|
checker, cgen: fix generic arrays sum() (#11502)
|
2021-09-16 07:08:28 +03:00 |
yuyi
|
09ded16e3d
|
checker: use 'if foo in [TypeA, TypeB]' in checker.v (#11494)
|
2021-09-16 07:08:14 +03:00 |
playX
|
7d1776b84d
|
js: equality method generation for V types (#11503)
|
2021-09-16 07:07:48 +03:00 |
Alexander Medvednikov
|
d00808660f
|
json: omitempty
|
2021-09-16 07:02:43 +03:00 |
Delyan Angelov
|
5bc6cc9512
|
v.checker: fix spurious warning for `if x := map_of_sumtypes[k] {}`
|
2021-09-15 15:42:28 +03:00 |
Ekopalypse
|
41fc4c55c6
|
v.builder: simplify target architecture logic for msvc (#11491)
|
2021-09-14 17:47:26 +03:00 |
yuyi
|
9554470985
|
checker, cgen: fix generic operator overload of 'cmp' (#11489)
|
2021-09-14 16:20:02 +03:00 |
yuyi
|
8862c3af0f
|
all: implement `if foo in [Foo1, Foo2, Foo3]` (#11486)
|
2021-09-14 15:56:12 +03:00 |
Alexander Medvednikov
|
12ec900d20
|
checker: fix the void type check
|
2021-09-14 01:02:32 +03:00 |
Daniel Däschle
|
b63ec8fbcf
|
checker: require `params` attribute to use struct as keyword arguments in function (#11135)
|
2021-09-14 00:05:30 +03:00 |
Alexander Medvednikov
|
ae41d1d3c6
|
builtin, cgen: more -nofloat fixes
|
2021-09-13 19:06:19 +03:00 |
Alexander Medvednikov
|
8fc0b486a2
|
builtin: fix string interpolation when compiling with -nofloat
|
2021-09-13 18:40:32 +03:00 |
Alexander Medvednikov
|
c99281709b
|
pref: define nofloat comptime define
|
2021-09-13 18:35:21 +03:00 |
Alexander Medvednikov
|
04d4431299
|
checker: remove another unnecessary error
|
2021-09-13 18:35:08 +03:00 |
Alexander Medvednikov
|
cfcc57f5d3
|
checker: remove unnecessary "no methods" error; builder: skip float.c.v with -nofloat
|
2021-09-13 18:14:26 +03:00 |
playX
|
b9dfc89aa9
|
js: prefix V builtin functions, so they do not overlap with JS (#11483)
|
2021-09-13 11:44:55 +03:00 |
yuyi
|
30029eaf5d
|
checker, cgen: fix generic operator overload (fix #11472) (#11479)
|
2021-09-13 09:49:28 +03:00 |
Enzo
|
012da10517
|
ast, fmt: cleanup (#11477)
|
2021-09-13 04:08:58 +03:00 |
yuyi
|
cd7d482c3b
|
checker: fix generic array append (#11475)
|
2021-09-12 15:09:11 +03:00 |
Enzo
|
ccf6285f82
|
checker: allow mut arg on C functions (#11430)
|
2021-09-11 14:25:38 +03:00 |
playX
|
5b619b99c2
|
v.gen.js: Interfaces support, fix for error propagation & panic stacktraces (#11471)
|
2021-09-11 14:24:47 +03:00 |
Ekopalypse
|
f9eb14d914
|
builder: remove fPic argument from windows builds (#11467)
|
2021-09-11 04:48:02 +03:00 |
zakuro
|
fb20a92b1e
|
fmt: fix a bug that break generics call in string inter (#11468)
|
2021-09-11 04:47:22 +03:00 |
playX
|
07bd61582c
|
js: fix strconv build, BigInt infix fix (#11464)
|
2021-09-11 00:11:36 +03:00 |
Enzo
|
c8471528ce
|
fmt: format long sum-types with a line for each type (#11461)
|
2021-09-10 20:56:55 +03:00 |
Alexander Medvednikov
|
5c4385a472
|
cgen: nofloat for kernel code
|
2021-09-10 20:54:48 +03:00 |
Daniel Däschle
|
be0c54caf9
|
checker: require or block for sumtype map (#11089)
|
2021-09-10 16:07:39 +03:00 |
yuyi
|
af75789bbf
|
parser: fix reference var followed by block expr (#11456)
|
2021-09-10 15:31:09 +03:00 |
yuyi
|
91c6eeeae5
|
cgen: fix `b := &[5, 6, 7]` (#11457)
|
2021-09-10 14:30:30 +03:00 |
Delyan Angelov
|
bdd053fcf1
|
v.builder: fix `./v examples/v_script.vsh` on windows (this quickfix is thanks to yuyi98)
|
2021-09-10 12:30:40 +03:00 |
Delyan Angelov
|
7143b8ab37
|
v.checker: allow assigning pointers to fn variables (fix vinix compilation)
|
2021-09-10 11:48:36 +03:00 |
Alexander Medvednikov
|
afeb1525a1
|
native: rename cgen to code_gen to avoid confusion with cgen
|
2021-09-10 03:17:53 +03:00 |
Alexander Medvednikov
|
0370d4f268
|
native: fix macho test
|
2021-09-09 23:00:54 +03:00 |
Dialga
|
66ef27a776
|
tmpl: fix escaping @ (#11452)
|
2021-09-09 20:27:24 +03:00 |
Alexander Medvednikov
|
ab3adf3346
|
checker: no longer allow automatic dereferncing in `a = b`
|
2021-09-09 20:21:01 +03:00 |
Delyan Angelov
|
4faa0f8487
|
v.checker: add checks for `.free()` methods
|
2021-09-09 09:54:06 +03:00 |
playX
|
72089c4feb
|
js: use prefixed names for functions and global symbols (#11387)
|
2021-09-08 20:30:46 +03:00 |
Alexander Medvednikov
|
4a2728e1bf
|
checker: verify json.decode type
|
2021-09-08 14:49:02 +03:00 |
yuyi
|
e5360e164a
|
fmt: remove unnecessary parentheses after `return` (fix #11423) (#11435)
|
2021-09-08 14:19:53 +03:00 |
Enzo
|
bef3390f36
|
builtin: fix compilation (#11445)
|
2021-09-08 14:19:21 +03:00 |
Enzo
|
56ad5d72ef
|
builtin: add `.str` method for `i/usize` (#11441)
|
2021-09-08 13:41:08 +03:00 |
Enzo
|
e3b65092d6
|
parser: deprecate `size_t` (#11443)
|
2021-09-08 13:09:32 +03:00 |
Ruofan XU
|
892971024e
|
parser: fix generic detection of `foo < bar<T>()` (#11434)
|
2021-09-08 05:54:15 +03:00 |
Enzo
|
cc8ee5fb84
|
all: introduce `isize` and `usize` (#11437)
|
2021-09-08 05:53:39 +03:00 |
Enzo
|
79c2bca401
|
v.scanner: fix error messages with unexpected token `?` (#11428)
|
2021-09-07 20:46:56 +03:00 |