20129 Commits

Author SHA1 Message Date
Felipe Pena
730b3f5e0f
checker: check for receiver name clashing with global var (fix #22698) (#22708) 2024-10-31 06:46:08 +02:00
Delyan Angelov
63a192ccb3
cgen: ensure proper saving/restoring of cgen map[k] := fn () state, when assigning anonymous fns (fix #22705) (#22707) 2024-10-31 06:12:48 +02:00
Felipe Pena
6cfa84c991
checker: fix generic resolve comptime generic var (#22699) 2024-10-31 03:22:13 +03:00
Felipe Pena
0b2b06df3c
checker: fix missing check for fn var with generic return inherited to anon fn (fix #19045) (#22683) 2024-10-30 21:56:52 +02:00
kbkpbot
2f75348b67
bitfield: add shift_left/1 and shift_right/1 methods to BitField (#22700) 2024-10-30 21:55:42 +02:00
Delyan Angelov
d79b85099c
x.vweb: bump port numbers for tests, to avoid conflicts with the equivalent veb test ports 2024-10-30 20:27:26 +02:00
larpon
dad8e3c766
flag: add missing short flag match in flag.to_struct, add test (#22696) 2024-10-30 17:31:31 +02:00
Felipe Pena
3af720921c
checker: fix selector with prefixed & structinit (#22689) 2024-10-30 17:56:21 +03:00
Hitalo Souza
54a6915f02
x.json2.decoder: support sumtypes fully (#22694) 2024-10-30 09:01:39 +02:00
Delyan Angelov
6e9a66dbf3
picoev: extract common code to a trace_fd/1 function, cleanup weekly.2024.44 2024-10-29 18:32:34 +02:00
Delyan Angelov
3939737a8d
picoev: support -d picoev_verbose_errors, do not use any naked eprintln by default, since that is a low level module 2024-10-29 18:04:08 +02:00
yuyi
45cbf4f14e
ast: improve the assert informations (related #22668) (#22679) 2024-10-29 07:15:27 +02:00
Delyan Angelov
5495280e7d
checker: allow for f() or { T{} } part 2, see also cc55aa5 (handle the case of an ignored result as well) (#22687) 2024-10-29 07:04:47 +02:00
daniel-le97
5d76ee4603
orm: fix orm.Connection only allowing immutable Connections (#22684) 2024-10-28 22:29:47 +02:00
yuyi
08c2019672
cgen: fix array append map value with or expr (fix #22674) (#22678) 2024-10-28 20:57:12 +02:00
Felipe Pena
7bd2bef1ae
parser: fix generic struct init detection T{} (#22682) 2024-10-28 17:56:43 +03:00
Delyan Angelov
cc55aa5b36
checker: allow for f() or { T{} } in a generic method, for fn f() ?T {, being called with T, being a container like []int etc, not just a primitive type like int (#22672) 2024-10-28 17:56:12 +03:00
Alexander Medvednikov
27ff2f1628 orm: cross compile pg to linux; openssl: make cross compile work 2024-10-28 17:37:34 +03:00
Felipe Pena
986ed33deb
cgen: fix dump of alias to option fn type (fix #22670) (#22676) 2024-10-28 14:05:38 +02:00
Delyan Angelov
a5d1229372
ci: run zizmor .github/workflows/paths_ci.yml and fix reported issues (#22681) 2024-10-28 13:50:56 +02:00
0dminnimda
9c72d94767
make: fix GNUmakefile to build with msys (#22675) 2024-10-28 01:27:35 +03:00
Hitalo Souza
b59b57efd8
x.json2.decoder2: add initial support for sumtypes (#22669) 2024-10-27 22:34:35 +02:00
Felipe Pena
8ffcc34224
checker: fix f: app.method field initialisation, for fn fields, initialised with generic methods (#22665) 2024-10-27 20:43:15 +02:00
Felipe Pena
1ced1e9108
checker: fix return type checks, when returning struct values, implementing IError in non-result fn (fix #22659) (fix #22658) (#22660) 2024-10-27 20:31:01 +02:00
yuyi
c8ddf2197a
builtin, cgen: improve the assert informations (fix #22666) (#22668) 2024-10-27 17:45:08 +02:00
Delyan Angelov
3e8345d216 ci: move the macos->linux check even higher, to make easier testing and diagnosing linuxroot update failures 2024-10-27 17:40:18 +02:00
Delyan Angelov
0eb8688a14 ci: test the cross compilation from macos to linux sooner, show more information 2024-10-27 17:35:52 +02:00
yuyi
e59115ed02
checker: fix index expr that left is if expr (fix #22654) (#22661) 2024-10-27 16:54:46 +03:00
Hitalo Souza
d7d88b9f0f
log,time: improve performance for writing a line to a log, add Time.format_rfc3339_micro/0 (#22662) 2024-10-27 12:00:16 +02:00
Delyan Angelov
d133d30b60
ci: fix failing musl jobs after 2684ef9 (#22667) 2024-10-27 11:58:53 +02:00
Felipe Pena
731d07d6d6
v: allow sumtype init by variant comptime var T(v) / SumType(v) (#22664) 2024-10-27 09:26:44 +02:00
Delyan Angelov
14b1a14e6c
readme: uncollapse the Docker section, so that links like https://github.com/vlang/v/blob/master/README.md#docker-with-alpinemusl work properly 2024-10-26 18:28:28 +03:00
Alexander Medvednikov
2684ef94e3 ci: test -os linux cross compilation on macOS 2024-10-26 18:10:47 +03:00
Delyan Angelov
d25f281b25
tests: fix compilation of the semaphore_wait.v program with latest V 2024-10-26 17:24:01 +03:00
yuyi
31c01fe956
checker: add tests for checking the new errors for fixed arrays .sort() calls (#22656) 2024-10-26 13:20:17 +03:00
alexey semenyuk
bfee824860
docs: fix broken links by adding missing READMEs (#22636) 2024-10-26 13:15:50 +03:00
Felipe Pena
419645a045
encoding.utf8: fix is_punct func (fix #22646) (#22647) 2024-10-26 10:33:31 +03:00
Felipe Pena
b5f022d804
cgen: fix waiter funcs declarations (fix #22640) (#22649) 2024-10-26 10:24:51 +03:00
Felipe Pena
067c5b6486
cgen,ast: fix interface conversion codegen race issue (fix #22640, #17943) (#22655) 2024-10-26 08:26:41 +03:00
Delyan Angelov
be0de59076
builder,pref: fix ./v -os linux examples/json.v on macos (#22651) 2024-10-25 23:15:17 +03:00
yuyi
4a7eca14c6
checker, cgen: implement method sort()/sorted() for fixed array (#22650) 2024-10-25 22:01:09 +03:00
Delyan Angelov
a454f0647f builder: change linuxroot repo URL to https://github.com/vlang/linuxroot 2024-10-25 18:58:44 +03:00
yuyi
5ad0186895
checker, cgen: implement method map() for fixed arrays (#22644) 2024-10-25 11:49:48 +03:00
Felipe Pena
4e9f7c21aa
v: optimize literal string comparison (match, in and ==) (#22643) 2024-10-25 10:40:09 +03:00
yuyi
f715d49156
cgen: fix struct field init with fixed array using index (fix #22616) (#22641) 2024-10-24 17:14:35 +03:00
Delyan Angelov
9e677393dc
parser: do import veb, only for templates that do use functions defined in veb 2024-10-24 14:57:10 +03:00
yuyi
75de056dfc
checker: cleanup method_call() (#22639) 2024-10-24 10:51:46 +03:00
yuyi
42cc345381
checker: improve checking parameter mismatches for fixed array builtin methods (#22630) 2024-10-24 10:35:27 +03:00
Felipe Pena
a847edd6c8
cgen: fix anon fn with & prefix (fix #22628) (#22638) 2024-10-24 09:47:11 +03:00
Felipe Pena
93df2f65ec
cgen: fix selector indexexpr with fntype on assignment (fix #22635) (#22637) 2024-10-24 09:45:24 +03:00