Delyan Angelov
1d2ef79545
v: fix -assert aborts
2021-04-15 20:29:58 +03:00
Delyan Angelov
c7752ce8d3
v: add an -assert aborts/backtraces option to ease debugging
2021-04-15 20:26:51 +03:00
Delyan Angelov
f0c1e55637
v.gen.c: support -d abort_on_assert
by injecting abort() calls
2021-04-15 19:55:09 +03:00
Delyan Angelov
d90be54850
v: add -cstrict for optionally turning on all ccoptions.wargs
2021-04-15 14:56:45 +03:00
涂紳騰(Shen-Teng Tu)
d9fdae1de9
parser: escape js template literal syntax inside <script> tags ( #9738 )
2021-04-15 12:39:39 +03:00
yuyi
466dc4540b
all: minor cleanup of generics ( #9744 )
2021-04-15 11:00:23 +03:00
Louis Schmieder
dcf4a6b008
orm: add support for custom table names & custom field names ( #9697 )
2021-04-15 10:53:43 +03:00
Delyan Angelov
b8e9f085eb
vfmt: cleanup StringInterLiteral.get_fspec_braces/1
2021-04-15 09:46:05 +03:00
Delyan Angelov
f1549b3ee7
vfmt: make ${} more robust; require it for every interpolation that uses '...' or "..."
2021-04-15 09:28:40 +03:00
Jarred Sumner
9d6caa1d5d
checker: fix segfault in vls for struct field declarations, having custom initializers with fn calls ( #9741 )
2021-04-15 08:49:25 +03:00
Alexander Medvednikov
7df996e5e5
checker: fix fn_args test
2021-04-15 06:51:48 +03:00
Alexander Medvednikov
a18f85c8cd
vweb: init_once() => init_server(); init() => before_request()
2021-04-15 06:27:24 +03:00
Alexander Medvednikov
3a134acc5a
checker: orm: verify table type
2021-04-15 03:11:24 +03:00
ka-weihe
25a9d30a70
channels: fix C warnings ( #9732 )
2021-04-15 01:44:39 +02:00
yuyi
1250ce4353
cgen: fix generics with embed generics ( fix #8694 ) ( #9724 )
2021-04-15 01:44:11 +02:00
Lukas Neubert
f4c8f897fe
parser: proper unexpected eof errors in const declarations ( #9712 )
2021-04-15 01:31:49 +02:00
crthpl
0099458c0a
all: small asm fixes and number labels ( #9730 )
2021-04-15 01:30:23 +02:00
zakuro
968cb13a36
fmt: mark types import as used in interface ( #9718 )
2021-04-15 01:29:17 +02:00
Delyan Angelov
345868853e
checker: change wording of the error message for complex boolean expressions
2021-04-14 19:55:52 +03:00
Delyan Angelov
3e297bced4
ci: remove some tests from skip_with_werror in v test-self
2021-04-14 12:47:24 +03:00
crthpl
14434cc86a
all: bare metal support (fix -freestanding
) ( #9624 )
2021-04-14 07:50:50 +02:00
Uwe Krüger
10bf974cda
all: gc: provide optimized mode ( #9716 )
2021-04-14 00:40:26 +02:00
Delyan Angelov
68c3eccec5
v: skip asserts in -prod mode inside non _test.v files
2021-04-13 13:07:57 +03:00
Delyan Angelov
84fe2d8c6e
v.ast: implement Expr.str() for ast.ConcatExpr and ast.IfExpr too
2021-04-13 12:23:30 +03:00
Delyan Angelov
1ef718c1e1
cgen: fix return if cond { x,y } else { a,b }
generation
2021-04-13 11:52:18 +03:00
Enzo
66294e359a
checker: add immutable_builtin_modify.vv test ( #9702 )
2021-04-13 06:55:41 +03:00
yuyi
c3ccb58450
checker: check generics variadic arg mismatch ( #9700 )
2021-04-13 02:06:24 +02:00
Leah Lundqvist
cfaba49683
ios: move sokol
declarations out of builder, and support non-sokol apps too ( #9703 )
2021-04-12 19:35:06 +03:00
ka-weihe
491fe49af6
map: rename methods (part 2) ( #9698 )
2021-04-12 16:22:02 +02:00
Lukas Neubert
b2c16ced57
parser: filter out vet space indent errors inside StringInterLiterals ( #9695 )
2021-04-12 16:03:22 +03:00
Lukas Neubert
ada763e0f4
fmt: remove parenthesis around single ident ( #9696 )
2021-04-12 16:01:03 +03:00
Delyan Angelov
6d2d956c80
tests: fix -skip-unused test on macos
2021-04-12 10:24:13 +03:00
Delyan Angelov
8193efb379
v.markused: mark all pub
functions on -shared -skip-unused
2021-04-12 09:29:34 +03:00
Louis Schmieder
67d8639917
orm: add unique fields & add drop table stmt ( #9684 )
2021-04-11 23:57:25 +02:00
yuyi
b0b3c51658
checker: minor cleanup in fn_call ( #9681 )
2021-04-11 23:57:00 +02:00
Enzo
5a1a1b7c12
all: merge GoExpr and GoStmt ( #9685 )
2021-04-11 23:56:25 +02:00
Henrixounez
6cfd53bf57
cgen: generate interfaces after all other typedefs ( #9680 )
2021-04-12 00:43:19 +03:00
Delyan Angelov
79fa15ec3a
cgen: allow printing of C.Structs containing &char/charptr fields
2021-04-12 00:14:58 +03:00
Louis Schmieder
273655ecc8
vfmt: fix asm volatile & goto ( #9688 )
2021-04-11 23:32:28 +03:00
Enzo
a851901620
checker: allow casting bool to byte ( #9676 )
2021-04-11 13:24:24 +03:00
Uwe Krüger
954c436d28
checker/cgen: auto initialize shared
elements of structs ( #9669 )
2021-04-11 10:30:23 +03:00
yuyi
3241611871
v.ast table: minor simplification of generic_struct_insts_to_concrete() ( #9667 )
2021-04-11 10:29:31 +03:00
yuyi
a2a18ef92c
v: simplify handling of function generic parameters ( #9673 )
2021-04-11 09:02:57 +03:00
Uwe Krüger
78c6e35bde
checker/cgen: fix v := rlock m { m[key] or { default_val } }
( #9666 )
2021-04-10 16:57:18 +02:00
Leah Lundqvist
38c517c1a2
builtin: use NSLog on iOS for print ( #9665 )
2021-04-10 17:40:43 +03:00
Louis Schmieder
64391efa4d
orm: add mysql support ( #9630 )
...
* add mysql to orm
* fix got to big packet error
* format sql.v
* format example
* custom sql types
* add mysql table cration
* add documentation
* format sql.v
* fix markdown
* start implementing select_expr for mysql
* remove orm.c
* format sql.v
* finish mysql expr
* remove c
* remove unessecary files
* change to c implementation
* remove c
* added str interpolation for idents
* fix string insert
* fix compilation problems
* fix gitly compilation
* fix typing mistake
* add link to orm docs
2021-04-10 17:38:27 +03:00
yuyi
9f093203a4
cgen: fix generics struct_init ( #9661 )
2021-04-10 17:33:15 +03:00
yuyi
cf64001474
checker: fix generics return generic struct ( #9663 )
2021-04-10 14:00:01 +03:00
yuyi
1bcc45f914
cgen: minor cleanup of return_stmt ( #9664 )
2021-04-10 11:55:34 +03:00
Delyan Angelov
d54becf52e
v.cflag: support #flag $first_existing("/opt/homebrew/lib/libgc.a", "/usr/local/lib/libgc.a")
2021-04-10 10:46:43 +03:00
yuyi
bf6a2f80ef
checker: fix generics with generic struct receiver ( #9658 )
2021-04-10 04:00:53 +02:00
ka-weihe
5273214ec2
map: rename methods ( #9657 )
2021-04-10 04:00:29 +02:00
crthpl
903dd49212
v: add support for $if freestanding {
, without using it (part 1) ( #9656 )
2021-04-09 23:24:25 +03:00
Delyan Angelov
40d32c7eed
v.markused: fix -skip-unused regression for v itself and for tetris
2021-04-09 20:04:14 +03:00
Ned Palacios
50f59674ce
ast, checker: make SelectorExpr.root_ident return ?Ident ( #9647 )
2021-04-09 18:06:40 +02:00
Uwe Krüger
b346dd9464
cgen: fix blank identifier in IfGard (if _ := <-ch { ... }
, etc) ( #9650 )
2021-04-09 17:18:36 +02:00
Ned Palacios
6948419595
parser: fix InterfaceDecl's position ( #9649 )
2021-04-09 17:18:22 +02:00
Uwe Krüger
0c710ce470
cgen: register Option_void
when used for chan <- x or {...}
( #9648 )
2021-04-09 17:18:02 +02:00
Delyan Angelov
820fe626e7
v.gen.c: reduce slightly the generated C lines with -skip-unused (3940 -> 3699 for hello_world.v)
2021-04-09 17:56:36 +03:00
Ned Palacios
a706215e52
ast, parser: add type_pos to TypeDecl nodes ( #9571 )
2021-04-09 14:51:25 +03:00
Lukas Neubert
46e7e27ba3
v vet: give an error for trailing whitespace ( #9574 )
2021-04-09 13:22:14 +03:00
Caian R. Ertl
ddb2e72301
checker: do not allow module aliases started with '_' (underscore) ( #9588 )
2021-04-09 13:14:27 +03:00
Uwe Krüger
84fa1ae444
boehm-gc: support a [keep_args_alive]
tag for C functions ( #9641 )
2021-04-09 13:13:49 +03:00
spaceface
4feb09fa5b
checker, cgen: add sumtype-like smartcasting capabilites to interfaces ( #9256 )
2021-04-09 11:00:05 +03:00
zakuro
e6a67e7172
parser: fix error of -foo.bar()
( #9646 )
2021-04-09 10:54:03 +03:00
Delyan Angelov
7c79e9bce7
v.builder: streamline -stats output between backends. add a 'compilation speed' stat too
2021-04-08 12:18:16 +03:00
Ali Chraghi
9881ff8448
tests: fix option_print_errors_test.v ( #9616 )
2021-04-08 08:46:08 +03:00
yuyi
690c0309ad
vfmt: fix fn/method that return generic struct ( #9638 )
2021-04-08 08:24:34 +03:00
yuyi
e654d61541
checker: minor cleanup in check_or_expr() ( #9635 )
2021-04-08 08:21:42 +03:00
Louis Schmieder
c37945e37f
orm: add != ( #9600 )
2021-04-08 02:13:25 +02:00
Enzo
9541eb816b
checker: remove unecessary assert ( #9617 )
2021-04-07 19:18:18 +02:00
Delyan Angelov
a747651f18
v.vcache: another workaround for a tcc arm64 runtime bug
2021-04-07 19:13:05 +03:00
Delyan Angelov
0cb0b0f9c6
v.vcache: workaround a tcc arm64 invalid memory access bug
2021-04-07 19:09:41 +03:00
Louis Schmieder
fdb4f17866
ci: fix compilation with g++ ( #9629 )
2021-04-07 18:53:04 +03:00
Delyan Angelov
9c67a1cf62
ci: fix the v -autofree cmd/v
job
2021-04-07 18:37:30 +03:00
yuyi
66fafe7b7b
checker: remove redundant code for generic structs ( #9628 )
2021-04-07 17:26:22 +02:00
Delyan Angelov
de5cf4ac5e
v: show the number of processed bytes and lines for V source code with -stats
2021-04-07 18:12:27 +03:00
yuyi
fef4e1e700
checker: fix generics method return generics struct ( #9614 )
2021-04-07 15:27:58 +02:00
Louis Schmieder
ab03357a6e
orm: add table creation ( #9621 )
2021-04-07 15:27:02 +02:00
Lukas Neubert
3a07fbc653
fmt: improve match branch wrapping ( #9619 )
2021-04-07 15:26:10 +02:00
Lukas Neubert
1d5ed89138
fmt: remove trailing space in comments ( #9620 )
2021-04-07 15:25:11 +02:00
ka-weihe
bca9409192
map: wrap up delete fix ( #9626 )
2021-04-07 14:12:12 +02:00
Alexander Medvednikov
ff9837386a
Revert "map: wrap up delete fix ( #9601 )"
...
This reverts commit cbcc0d34b5
.
2021-04-07 03:40:43 +03:00
crthpl
018a88c3ce
parser: asm: add support for memory clobbers ( #9618 )
2021-04-06 21:25:24 +02:00
Alexander Medvednikov
89838f2e21
tutorials: blog: use db.create_table()
2021-04-06 22:15:14 +03:00
Alexander Medvednikov
f4566bb324
autofree: fix return x[0]
(optional)
2021-04-06 18:38:16 +03:00
Alexander Medvednikov
1e2a92945c
autofree: test return x[0]
(optional)
2021-04-06 17:28:07 +03:00
Alexander Medvednikov
dbaa91810f
autofree: fix optional returns
2021-04-06 17:14:11 +03:00
ka-weihe
cbcc0d34b5
map: wrap up delete fix ( #9601 )
2021-04-06 15:57:08 +02:00
涂紳騰(Shen-Teng Tu)
7d5c1c2ddb
tmpl: inline styles with attributes ( #9605 )
2021-04-06 15:17:40 +02:00
Lukas Neubert
a0648a3ec2
all: fixes related to Node.pos ( #9613 )
2021-04-06 15:16:19 +02:00
Delyan Angelov
87a16bbfe9
ci: fix -autofree cmd/v compilation job regression
2021-04-06 15:21:18 +03:00
Delyan Angelov
c1f2c570bc
v.util: prevent diff tool lookups when VDIFF_TOOL is set
2021-04-06 13:22:04 +03:00
Delyan Angelov
19b915b105
ci: fix windows-tcc job
2021-04-05 23:35:22 +03:00
Delyan Angelov
10619d098c
ci: fix a race in vlib/v/compiler_errors_test.v execution on m1
2021-04-05 22:57:59 +03:00
Delyan Angelov
0e94612535
checker: only allow ptr += int
in unsafe blocks
2021-04-05 22:01:18 +03:00
Delyan Angelov
d11fb8497a
ci: fix some of v test-cleancode
3
2021-04-05 21:21:46 +03:00
Delyan Angelov
fec89c7efb
ci: fix some of v test-cleancode
1
2021-04-05 20:47:32 +03:00
Delyan Angelov
5bc29492fd
ci: fix vlib/v/tests/str_gen_test.v (all of v test-self
is ok now)
2021-04-05 19:31:28 +03:00
Delyan Angelov
abbb08b28c
ast,checker: fix v test-self
by relaxing the is_number checks
2021-04-05 18:45:03 +03:00
Conner
ab77453f5f
checker: fix spelling in 'inferred generic type is ambiguous:' check ( #9593 )
2021-04-05 18:21:09 +03:00
Ned Palacios
98e1dd4b22
checker: wrap print_backtraces with if is_verbose ( #9595 )
2021-04-05 18:19:20 +03:00
Ned Palacios
07b1dc66dd
ast, parser: add additional pos info for FnDecl and InterfaceDecl nodes ( #9603 )
2021-04-05 18:14:21 +03:00
Delyan Angelov
90b123c27b
ci: fix self compilation on windows
2021-04-05 15:47:43 +03:00
Delyan Angelov
7a9607b028
checker: use .clear_flags() when comparing number literals
2021-04-05 10:39:48 +03:00
Delyan Angelov
4cde74f120
checker: make the compiler stricter when checking pointers
2021-04-05 10:02:47 +03:00
Delyan Angelov
d82a0c1637
ci: fix multiret_with_ptrtype_test.v
2021-04-05 08:31:20 +03:00
Delyan Angelov
63a1c32a17
ci: fix ptr_arithmetic_test.v
2021-04-05 08:25:08 +03:00
Alexander Medvednikov
92fa9bbea9
cgen: fix [packed]
2021-04-05 08:02:19 +03:00
Alexander Medvednikov
ed37512ea9
ci: run wkhtmltopdf only on linux again
2021-04-05 07:55:32 +03:00
Delyan Angelov
9cc9ce698f
ci: fix more of byteptr=> &byte, vfmt check_types.v
2021-04-05 07:27:26 +03:00
Delyan Angelov
e9b8d9ba9e
ci: fix byteptr cast in embed_file.v
2021-04-05 07:27:26 +03:00
Alexander Medvednikov
77d8336db9
cgen: [packed] struct attribute
2021-04-05 06:49:43 +03:00
Alexander Medvednikov
7b7602a2f9
checker: bring back automatic c'foo' in c calls
2021-04-05 06:36:06 +03:00
Delyan Angelov
43d83717e7
ci: add more byteptr/&byte compatibility shims to smooth the transition to &byte
2021-04-04 22:46:31 +03:00
Delyan Angelov
0da827f250
ci: add a temporary transition shim to teach V that &byte === byteptr and &char === charptr
2021-04-04 21:37:07 +03:00
Alexander Medvednikov
f3484345c7
checker: remove debugging info
2021-04-04 18:40:10 +03:00
Alexander Medvednikov
57e6138a61
all: remove byteptr and charptr; replace them with &byte and &char
2021-04-04 17:43:32 +03:00
yuyi
8dd4a63913
checker: minor cleanup of checker.v ( #9585 )
2021-04-04 16:05:29 +02:00
Delyan Angelov
c698fa1a58
all: support v -watch run
( #9577 )
2021-04-04 16:05:06 +02:00
ka-weihe
337e447cfb
map: fix delete (part 1) ( #9579 )
2021-04-04 01:11:47 +02:00
Lukas Neubert
0eb59cf2bd
fmt: prevent possible trailing whitespace in wrapped infixes ( #9573 )
2021-04-03 18:30:25 +02:00
Lukas Neubert
646d46b4dc
vet: turn warnings into errors with -W flag ( #9575 )
2021-04-03 18:30:15 +02:00
Alexander Medvednikov
31f8d5542c
cgen: remove a "return var" comment
2021-04-03 14:18:00 +03:00
Lukas Neubert
094441c863
vet: remove false positive space indent errors inside strings ( #9568 )
2021-04-03 12:16:49 +02:00
yuyi
7f81702d81
builtin: optimize array sort ( #9570 )
2021-04-03 12:16:18 +02:00
Delyan Angelov
53cbdbc2de
cgen: optimize out the empty #ifdef NOT_CURRENT_TARGET_OS #endif output
2021-04-02 18:52:42 +03:00
Daniel Däschle
6a5f49afb1
all: support ?Type(none)
( #9567 )
2021-04-02 16:34:48 +02:00
yuyi
3637bac716
cgen: fix rune array sort ( #9561 )
2021-04-02 16:28:27 +02:00
Conner
9ba8d02a5a
generics: add more checks ( #9539 )
2021-04-02 16:27:54 +02:00
Lukas Neubert
e438b158a6
vet: remove false positive space indentation error inside block comments ( #9565 )
2021-04-02 16:26:53 +02:00
Ned Palacios
1bb48c3577
ast, parser: patches for VLS ( #9562 )
2021-04-02 16:26:37 +02:00
Delyan Angelov
897cd4cec2
builder: update cached .o files when their .c file is newer
2021-04-02 08:49:54 +03:00
Delyan Angelov
69ba93f954
ast: remove redundant import v.ast
2021-04-02 08:31:29 +03:00
Alexander Medvednikov
fb302c6253
checker: fix compilation
2021-04-02 03:29:24 +03:00
yuyi
c11356be21
cgen: minor optimization of fixed array copy ( #9554 )
2021-04-02 01:58:20 +02:00
Daniel Däschle
d8efe249ce
checker: add check for call expr in map/filter ( #9559 )
2021-04-02 01:56:51 +02:00
Alexander Medvednikov
7385f8e56b
all: a massive merge of ast and table modules
2021-04-02 01:57:09 +03:00
zakuro
0d1714cb0d
checker: check opt call in more places ( #9538 )
2021-04-01 11:49:13 +02:00
crthpl
8d5e310189
asm: make fixed labels possible as displacement ( #9549 )
2021-04-01 09:58:33 +03:00
yuyi
63f835c4ce
cgen: fix the alias of fixed_array ( fix #9537 ) ( #9544 )
2021-03-31 18:51:03 +02:00
yuyi
f1797a0150
generics: fix generic_struct_insts_to_concrete ( #9536 )
2021-03-31 13:11:55 +02:00
Ned Palacios
0b39de2fd3
ast, parser: add syms_pos to import ast ( #9541 )
2021-03-31 12:17:06 +02:00
Delyan Angelov
6daefde5cb
checker,ci: use c.note for "direct sum type init..."; fixes /v -prod cmd/vls
2021-03-31 12:38:54 +03:00
Delyan Angelov
23a6ce00e2
ci: fix for -cflags -Werror
jobs
2021-03-31 12:28:42 +03:00
Alexander Medvednikov
e2e7e5fd65
walker: skip EmptyExpr for now
2021-03-31 12:15:11 +03:00
Delyan Angelov
024787b01c
ci: make the compiler_errors_test.v output silent in the CI for the OK cases
2021-03-31 12:07:19 +03:00
Alexander Medvednikov
6f318be96c
checker: do not allow nil sum types init
2021-03-31 11:13:52 +03:00
yuyi
5c21c748c9
builder,checker,table: simpify generics unwrap and struct processing ( #9531 )
2021-03-30 15:23:17 +03:00
Swastik Baranwal
b40d06ec1e
cgen: fix operator overloading for array/map aliases ( #9529 )
2021-03-30 11:39:54 +02:00
Ned Palacios
3ced970b17
ast, parser: add additional info for CallExpr, StructInit nodes ( #9526 )
2021-03-30 09:43:17 +02:00
yuyi
6143bd6232
generics: check generic_fn called arg mismatch ( #9510 )
2021-03-30 09:36:45 +02:00
Uwe Krüger
97f43d6a97
gc: make generational mode of Boehm-GC available ( #9514 )
2021-03-30 09:36:22 +02:00
zakuro
a3455b8433
cgen: execute defer stmts in LIFO order ( #9528 )
2021-03-30 09:35:19 +02:00
Ned Palacios
b319068151
ast, parser: implement simple AST poisoning ( #9525 )
2021-03-30 09:33:29 +02:00
Ned Palacios
999c385b7f
checker: add type check in interface fields ( #9527 )
2021-03-30 09:32:37 +02:00
yuyi
cabbf93faa
cgen: fix generic_struct str() ( #9504 )
2021-03-29 11:15:59 +02:00
yuyi
736df955ff
checker: cleanup of generic's unwrap_generic ( #9495 )
2021-03-29 11:15:45 +02:00
yuyi
92f19f5767
generics: fix generics_struct with generic array string ( #9494 )
2021-03-28 10:46:13 +02:00
Uwe Krüger
76dc4cf13f
gc: fix another alignment issue ( #9489 )
2021-03-27 18:59:51 +01:00
Lukas Neubert
4a10514081
tests: run vfmt over some of the tests in vlib/v/tests ( #9455 )
2021-03-27 19:29:57 +02:00
Lukas Neubert
d9240bd983
fmt: remove cur_short_mod ( #9486 )
2021-03-27 17:29:49 +02:00
Lukas Neubert
cd74273869
fmt: fix import aliases in type declarations ( #9483 )
2021-03-27 11:33:41 +01:00
Swastik Baranwal
0e254e0329
vdoc: support -os and show docs according to the platform ( #9474 )
2021-03-27 09:50:06 +01:00
zakuro
6f5259571d
cgen: use overloaded eq op in auto eq method ( #9475 )
2021-03-26 19:46:54 +02:00
yuyi
36cc4880a6
parser: fix generic fn with upper name type ( #9460 ) ( #9478 )
2021-03-26 16:50:35 +02:00
Uwe Krüger
3220ab7053
Boehm-GC: fix global const
handling ( #9477 )
...
* define global `__v_inside_init`
* unset `__v_inside_init` after `_vinit()`
* define `C.GC_MALLOC_UNCOLLECTABLE()`
* allocate uncollectable memory during `_vinit()`
* ci: run test cases with V copiler that uses GC-Boehm itself
* wrap `__v_inside_init` access into `#ifdef _VGCBOEHM`
2021-03-26 16:44:45 +02:00
Delyan Angelov
a38fc89150
ci: fix the content of function_arg_mutable_err.out
2021-03-26 15:06:29 +02:00
Delyan Angelov
7e6c511e06
ci: fix the content of mut_int.out
2021-03-26 15:02:30 +02:00
Delyan Angelov
87494fad1d
parser: allow passing mut a AliasOfPointerType
2021-03-26 13:38:16 +02:00
Alexander Medvednikov
1e9d527d3c
checker: fix the deref mut check
2021-03-26 12:21:22 +03:00
Alexander Medvednikov
bb5958991c
checker: warn about automatic (de)referencing; freetype: compilation flag fixes
2021-03-26 11:42:51 +03:00
zakuro
91ea76797a
cgen: fix a c error, when using dump(ptr) ( #9468 )
2021-03-26 08:35:12 +02:00
yuyi
478bb9ce8e
parser, checker: fix generic fn that returns a generic struct ( #9469 )
2021-03-26 08:32:11 +02:00
yuyi
d8108a58d8
cgen: minor cleanup in for_in_stmt() ( #9471 )
2021-03-26 08:21:01 +02:00
Delyan Angelov
f29ca6b8df
cgen: show the original malloc call on a detected leak
2021-03-25 20:45:39 +02:00
Uwe Krüger
257eadd2e1
gc: add -gc boehm_leak
for leak detection ( #9464 )
2021-03-25 16:52:33 +01:00
Delyan Angelov
b0878d3a92
builtin,v.pkgconfig: use brew's libgc on macos
2021-03-25 07:28:30 +02:00
zakuro
837cada30c
cgen: minor cleanup infix_expr ( #9445 )
2021-03-24 23:21:54 +02:00
zakuro
e76c8d5dc0
fmt: use type_to_str_using_alias instead of type_to_str in struct.v ( #9431 )
...
* fmt: use type_to_str_using_alias instead of type_to_str in struct.v
* update test
2021-03-24 20:13:11 +02:00
Uwe Krüger
522d70b48d
builtin,cgen: fix -gc boehm issues with maps; add a CI job for it to prevent regressions ( #9453 )
2021-03-24 19:49:16 +02:00
ka-weihe
8a97fb890f
wyhash: update to final_version_3 (part 1) ( #9451 )
2021-03-24 17:57:38 +02:00
Delyan Angelov
f8f74d8587
builtin: add panic_optional_not_set and use it in cgen for fncall()? in main
2021-03-24 14:13:58 +02:00
Delyan Angelov
9b78d7d21d
tools: check formatting of more modules with v test-cleancode
, colorize v vet
output
2021-03-24 12:39:39 +02:00
ka-weihe
f885c7cea9
tests: fix three tests with address errors ( #9441 )
2021-03-24 00:01:29 +02:00
spaceface
392666e475
cgen: fix treating errors as values inside if expressions ( #9440 )
2021-03-23 22:45:08 +02:00
Delyan Angelov
8abfe2f5a2
cgen: -autofree fixes for []string{} having literals, comming from defailt string stuct field values
2021-03-23 18:54:37 +02:00
Delyan Angelov
7101d53d74
ci: fix v self
, v up
and other tools
2021-03-23 15:30:41 +02:00
Alexander Medvednikov
11e1f42193
builder: save the binary next to the source code again
2021-03-23 14:50:50 +03:00
Alexander Medvednikov
6463dfca29
Revert "Revert "builder: create the binary in the current directory if -o is not provided""
...
This reverts commit f2b73fe3ca
.
2021-03-23 14:49:09 +03:00
Delyan Angelov
ae6420afc7
tools: fix substring in s
usages, preventing v -W build-tools
2021-03-23 13:36:50 +02:00
Delyan Angelov
f2b73fe3ca
Revert "builder: create the binary in the current directory if -o is not provided"
...
This reverts commit 9ae64e7fce
.
2021-03-23 13:27:26 +02:00
Alexander Medvednikov
9ae64e7fce
builder: create the binary in the current directory if -o is not provided
2021-03-23 12:31:02 +03:00
Alexander Medvednikov
0c055a1ce9
all: s.contains(s2) instead of in
2021-03-23 11:38:56 +03:00
Alexander Medvednikov
b5c286256c
tests: fix a compilation error
2021-03-23 11:16:13 +03:00
Ned Palacios
1d42b4cf66
vdoc, v.doc: remove DocPos and use token.Position ( #9429 )
2021-03-23 09:07:09 +01:00
Alexander Medvednikov
e86c6e024c
autofree: fix frees before returns
2021-03-23 11:04:59 +03:00
Ned Palacios
b9cbb4f177
scanner: fix eof token position ( #9432 )
2021-03-23 08:51:09 +01:00
Ned Palacios
aa4e22c287
scanner, token: add column information to tokens ( #9407 )
2021-03-23 06:23:46 +01:00
ka-weihe
3753a58ce0
parser: fix if-guard redefinition ( #9425 )
2021-03-23 04:38:36 +01:00
Lukas Neubert
1b572f75e8
fmt: minor array wrap improvement ( #9420 )
2021-03-22 23:06:12 +01:00
Delyan Angelov
a00c80b98f
v: support compiler notices. Use them for [deprecated_after: '2021-05-01']
tags
...
Compiler notices are like warnings, with these differences:
a) notices use a different color.
b) notices use a different label.
c) notices do not prevent compilation with -prod.
(warnings are converted to errors with -prod)
2021-03-22 19:59:00 +02:00
Delyan Angelov
c76c69ec35
all: simplify return if ...
constructs to make more code compatible with -autofree
2021-03-22 16:45:29 +02:00
zakuro
0258482caf
cgen: auto eq method for sumtype ( #9408 )
2021-03-22 06:39:07 +01:00
yuyi
cf6faaf215
parser: fix anon_fn with array arguments ( #9414 )
2021-03-22 03:22:29 +01:00
zakuro
dfd58293ef
parser: fix parse error when using f<Foo<int> >
( #9401 )
2021-03-21 13:09:43 +02:00
Alexander Medvednikov
4d77f3810f
gc: enable on macos and add leak detection fns
2021-03-21 05:31:10 +03:00
yuyi
246c09db96
checker: fix generics in big_struct ( fix #9373 ) ( #9383 )
2021-03-20 17:29:13 +01:00
zakuro
f9bbc119aa
checker: make optional arguments in func call an error ( #9362 )
2021-03-20 17:27:16 +01:00
Larpon
b7a0c44f39
builder: allow running symlinked .vsh files ( #9385 )
2021-03-20 17:25:09 +01:00
Delyan Angelov
8810af76df
all: support -gc boehm
on systems with libgc-dev installed ( #9382 )
2021-03-20 14:16:36 +01:00
Delyan Angelov
a6ddd24f5c
v.embed_file: add .to_string() and .to_bytes() utility methods
2021-03-20 09:30:38 +02:00
zakuro
e3c0f305b2
os: deprecate os.File.write_bytes
and add os.File.write_ptr
( #9370 )
2021-03-20 09:02:28 +02:00
yuyi
ead0dff55a
cgen: fix return if_guard expr ( #9375 )
2021-03-20 03:53:47 +01:00
spaceface
3f9e921c95
builtin: add a proper str() method to IError ( #9379 )
2021-03-20 01:55:16 +02:00
Delyan Angelov
a386be6505
v.table: correct table.types
to table.type_symbols
2021-03-19 22:51:52 +02:00
Delyan Angelov
4a12546971
cgen,fmt: improve sizeof(), fix type PPType = &&Type
2021-03-19 22:49:46 +02:00
Delyan Angelov
c5884a5f4d
v.ast: improve Expr.str() for sizeof(Type)
2021-03-19 20:56:49 +02:00
zakuro
95a748e8b0
checker: cleanup call_method ( #9365 )
2021-03-19 14:19:38 +02:00
Delyan Angelov
4f6306f6d4
examples: fix v -cflags "-Werror" test examples/
2021-03-19 13:13:56 +02:00
Lukas Neubert
82c4daa4b7
fmt: fail keep test when bin2v_keep preparation step fails ( #9361 )
2021-03-19 13:13:03 +02:00
Lukas Neubert
f8fcf3ff66
fmt: reorder and sort methods into section ( #9363 )
2021-03-19 11:26:34 +02:00
Delyan Angelov
00651c8deb
builtin: free all elements in a []string
with -autofree too
2021-03-18 21:10:42 +02:00
Miccah
7222ee476b
all: implement array .any and .all ( #9347 )
2021-03-18 15:24:16 +01:00
spaceface
624c1f3bcf
cgen: make bool
s take up a single byte, not 4 ( #9352 )
2021-03-18 15:23:29 +01:00
zakuro
4ae2c22c18
checker: make optional array element an error ( #9343 )
2021-03-18 15:11:51 +02:00
yuyi
a6c2c5ba88
parser: minor cleanup in call_args() ( #9344 )
2021-03-18 15:06:48 +02:00
Swastik Baranwal
f28e67d526
cmd/tools/v/vdoc: keep _
sep in numeric literals and highlight modules properly ( #9358 )
2021-03-18 15:06:16 +02:00
Ned Palacios
eccf707270
vdoc: improve error message for non-existing symbols ( #9359 )
2021-03-18 15:04:53 +02:00
Delyan Angelov
7bbcf02134
ci: fix failing -Werror steps for code generated by json.encode(map{'a': []string{}})
2021-03-18 12:13:06 +02:00
Delyan Angelov
f7a8a460f6
v.parser: add a test for db46ad5
2021-03-18 11:31:17 +02:00
Delyan Angelov
db46ad5481
v.parser: fix xxx.fncall(map{x: []string{}})
treatment as []xxx.string{}
2021-03-18 11:07:25 +02:00
Alexander Medvednikov
4e62bc0b81
autofree: fix free before return
2021-03-18 05:41:50 +03:00
Alexander Medvednikov
88097125f7
checker: remove "use ++
instead of += 1
"
2021-03-18 01:37:36 +03:00
zakuro
6cfc2c217b
checker: fix #9330 ( #9342 )
2021-03-17 20:57:14 +02:00
Lukas Neubert
49eeddcd1c
parser: set correct last line for struct inits ( #9349 )
2021-03-17 20:46:08 +02:00
Lukas Neubert
0a06a83d9b
fmt: fix possible removal of PrefixExpr or blocks ( #9351 )
2021-03-17 20:43:28 +02:00
Delyan Angelov
e8df8bc8c3
ci: fix for -autofree vlib/v/tests/option_test.v
2021-03-17 14:44:45 +02:00
Delyan Angelov
99cc02685b
cgen: implement IError.free() and use it for the builtin none
const
2021-03-17 12:38:24 +02:00
Delyan Angelov
ae401bd930
ci: fix the ./v -g -autofree -o v2 cmd/v
step
2021-03-17 09:48:56 +02:00
crthpl
fafb035fb5
all: reimplement inline assembly ( #8645 )
2021-03-17 01:43:17 +01:00
yuyi
dd9f9c2718
checker: check array.sort(a < b) ( #9321 )
2021-03-17 01:42:51 +01:00
ka-weihe
2991cad4e8
map: fix delete in for-in ( #9336 )
2021-03-17 01:42:33 +01:00
Alexander Medvednikov
149151b1e8
cgen: minor vfmt
2021-03-17 03:41:52 +03:00
Alexander Medvednikov
091a1bab27
autofree: free global map consts and some vweb fixes
2021-03-17 01:33:35 +01:00
Enzo
4b6244c9c1
gen: fix generic variadic ( #9333 )
2021-03-17 00:18:43 +02:00
Lukas Neubert
05b51c5b01
parser: correctly set pos of sql blocks ( #9334 )
2021-03-16 23:00:50 +02:00
Delyan Angelov
1753445a64
builtin: make panics more IDE friendly
2021-03-16 20:50:11 +02:00
Lukas Neubert
e554415123
fmt: allow ascii art block comments ( #9332 )
2021-03-16 20:49:55 +02:00
Delyan Angelov
506561c792
cgen: fix a bug (deleting a map key while iterating on the same map) detected by -d debug_realloc
2021-03-16 09:20:45 +02:00
Leah Lundqvist
0823ea4af1
builder: produce an iOS binary instead of a bundle ( #9316 )
2021-03-15 19:03:05 +01:00
Nick Treleaven
446631ceb5
checker: fixed array cannot implicitly convert to fooptr (again) ( #9302 )
2021-03-15 15:55:07 +02:00
Uwe Krüger
9d168895ed
checker: check write access to shared elements of struct
and array
( #9314 )
2021-03-15 15:54:06 +02:00
Anton Zavodchikov
1ad4623fb8
tmpl: move to v/parser ( #9052 )
2021-03-15 13:35:55 +02:00
yuyi
2d2e4610e7
cgen: make use of mut_rec in method consistent ( #9308 )
2021-03-15 12:22:52 +02:00
yuyi
e235022e10
cgen: fix error of for_in map_literal ( #9310 )
2021-03-15 12:22:32 +02:00
Delyan Angelov
25c07c2f43
v.ast: handle more expressions in Expr.str()
2021-03-15 06:27:56 +02:00
zakuro
80ac1aaf93
fmt: use type_to_str_using_aliases ( #9306 )
2021-03-15 06:27:08 +02:00
yuyi
945769a4f6
all: implement reference receiver optimization for big structs ( #9268 )
2021-03-14 18:11:21 +01:00
StunxFS
92e95f127a
checker: correct type check for generic function with ternary if return ( #9296 )
2021-03-14 19:01:32 +02:00
yuyi
e677daf608
cgen: fix array_sort and format array_filter/map generated codes ( #9303 )
2021-03-14 18:47:43 +02:00
Delyan Angelov
b6d089b605
v.depgraph: ensure v -d debug_realloc -o v cmd/v
works
2021-03-14 16:15:33 +02:00
Enzo
db152868c0
fix: fix infering int and float literal in generic fn calls ( #9287 )
2021-03-14 15:00:47 +02:00
yuyi
c0779e8455
cgen: fix return_statement generated redundant ;
( #9299 )
2021-03-14 14:58:17 +02:00
Delyan Angelov
ddbe57e00a
v test-cleancode: ensure more .v files are kept vmft-ed
2021-03-14 12:17:31 +02:00
zakuro
8dc0e4d150
v.scanner: decode \uXXXX in scanner ( #9298 )
2021-03-14 12:09:17 +02:00
Delyan Angelov
69f1e7c9c3
v: fixes for v -autofree -o v2 cmd/v
2021-03-14 09:37:38 +02:00
Leah Lundqvist
64d0006ff9
jsgen: fix string and array for loops and improve casting ( #9295 )
2021-03-14 08:20:01 +02:00
Nick Treleaven
df46fe1373
builder: warn when using tcc with -prod ( #9288 )
2021-03-14 01:55:14 +01:00
spaceface
9ed9e7aff0
builtin: cleanup option names (part 1) ( #9293 )
2021-03-14 01:54:46 +01:00
yuyi
5a6b321656
cgen: format if_guard_expr generated c codes ( #9290 )
2021-03-14 01:54:05 +01:00
spaceface
e9797c618a
all: implement error interfaces ( #9291 )
2021-03-13 18:13:50 +01:00
Alexander Medvednikov
167dcc415d
tests: fix a generic init test
2021-03-13 18:46:02 +03:00
Alexander Medvednikov
f86233c41f
autofree: fix [manualfree]
2021-03-13 18:43:02 +03:00
Alexander Medvednikov
2f1810634e
checker: do not allow direct initialization of builtin types (s := string{})
2021-03-13 18:20:46 +03:00
Lukas Neubert
f648e3f10d
fmt: use iembed cmts in arrays at line start when exprs come afterwards ( #9285 )
2021-03-13 09:58:50 +02:00
Nick Treleaven
c06e58d418
gen: fix generating $if expr || expr
( #9270 )
2021-03-13 08:45:50 +02:00
zakuro
00dedaf6c1
scanner: replace ascii unicode(\u0020) with hex(\x20) ( #9259 )
2021-03-13 08:02:42 +02:00
spaceface
be409b52e9
builtin: prepare for error interfaces ( #9043 )
2021-03-12 20:05:05 +02:00
Delyan Angelov
c474106511
cgen: fix match expression with complex boolean conditions
2021-03-12 19:55:33 +02:00
StunxFS
3cb1bb7c36
checker: check the amount of parameters passed to json.decode()
( #9267 )
2021-03-12 19:02:09 +02:00
Nick Treleaven
9db8a61b92
checker: disallow array append in an expression ( #9265 )
2021-03-12 16:09:01 +01:00
Uwe Krüger
dbbf96702b
checker: require shared a
to be rlocked
to read a[i]
or a.e
( #9266 )
2021-03-12 16:08:39 +01:00
Nick Treleaven
e229d0c1c3
checker: improve error message for invalid property ( #9263 )
2021-03-12 14:18:52 +02:00
Nick Treleaven
3be78d6777
parser: require anonymous fn to use _
for unused parameters ( #9262 )
...
Fixes a C error with gcc.
2021-03-12 14:17:37 +02:00
yuyi
504b87bcfd
checker: minor cleanup in if_expr() ( #9258 )
2021-03-12 13:40:05 +02:00
Lukas Neubert
cfbb783649
fmt: fix linebreak in non-block consts ( #9260 )
2021-03-12 12:27:05 +02:00
Lukas Neubert
a67d49050c
math: add a pure V math.mathutil
, with generic min
, max
and abs
functions ( #9176 ), and use it consistently
2021-03-12 11:28:04 +02:00
Lukas Neubert
c40ab0db72
fmt: fix removal of attrs with comments afterwards ( #9255 )
2021-03-11 21:44:33 +01:00
StunxFS
04c4f16f75
checker: minor changes to Checker.hash_stmt()
( #9249 )
2021-03-11 21:43:42 +01:00
StunxFS
8f08795689
checker: warn/error about empty const blocks ( #9252 )
2021-03-11 21:43:04 +01:00
yuyi
9fbb139e29
checker: check map copy error in fn_mut_arg ( #9242 )
2021-03-11 15:19:36 +01:00
Miccah
f26d2f02b7
ast, cgen, checker, parser: support method arguments in comptime $for ( #9208 )
2021-03-11 15:04:34 +02:00
StunxFS
8de6511056
cgen: minor optimization to for ch in "StringLiteral"
( #9240 )
2021-03-11 15:01:53 +02:00
yuyi
a547e889af
checker: check array literal modify error ( #9243 )
2021-03-11 14:57:04 +02:00
Lukas Neubert
f69cef397c
fmt: do not insert a space before struct declaration generics ( #9239 )
2021-03-11 14:54:40 +02:00
spaceface
7d0cba5e96
v.ast: remove the stmt.position()
method ( #9233 )
2021-03-11 14:50:02 +02:00
Delyan Angelov
6628bbc690
cgen: use the new __offsetof_ptr macro
2021-03-11 13:14:36 +02:00
Delyan Angelov
144546543c
cgen: add the __offsetof_ptr C macro
2021-03-11 13:08:45 +02:00
Delyan Angelov
5a231326d7
parser: improve syntax errors in module declarations
2021-03-11 10:42:36 +02:00
StunxFS
6a7ef4f5b2
v.scanner: fix position of hash statements ( #9222 )
2021-03-10 20:23:17 +02:00
zakuro
f280a5c230
checker: extract into call_array_builtin_method to cleanup ( #9225 )
2021-03-10 20:19:39 +02:00
zakuro
ef73e07e62
checker: split fn_decl into functions to cleanup ( #9226 )
2021-03-10 20:18:48 +02:00
zakuro
791dec7b01
v: support $if prod
( #9228 )
2021-03-10 19:26:34 +02:00
Swastik Baranwal
8d84206a8c
cgen: fix match for one branch ( #9234 )
2021-03-10 18:44:32 +02:00
spaceface
eefdad21c7
cgen: cleanup interface/sumtype casts ( #9221 )
2021-03-10 18:41:11 +02:00
yuyi
a187a4abb3
checker: check non-optional fn return or_block ( #9227 )
2021-03-10 12:53:23 +01:00
Delyan Angelov
0d2bb714bc
checker: disallow x := [13]SumType{}
too
2021-03-10 11:07:36 +02:00
Delyan Angelov
f5ebfefdc9
ci: use a smaller fixed size array for the const eval test (fixes failing windows job)
2021-03-10 10:40:41 +02:00
Joe Conigliaro
fd2845e955
v.util: change naming behaviour for modules relative to working dir. closes #9138
2021-03-10 16:28:06 +11:00
Delyan Angelov
96a9e16e64
checker: allow a := [5*kb]byte{}
where kb
is a compile time known const too
2021-03-09 20:21:36 +02:00
Delyan Angelov
26cfd0eda9
checker: eval const a = 1024 * 1024
and other simple integer expressions at compile time
2021-03-09 20:07:08 +02:00
spaceface
f1469a8761
checker: allow accessing fields common to all sumtype members ( #9201 )
2021-03-09 19:16:18 +02:00
yuyi
c4b0fdcbaf
cgen: fix for_in fixed_array of fixed_array literal ( #9206 )
2021-03-09 16:18:07 +02:00
yuyi
e67ce5ea7b
cgen: fix error of alias interpolation ( #9209 )
2021-03-09 13:25:31 +02:00
Ned Palacios
114a7db6e5
vdoc: fix symbol filtering ( #9210 )
2021-03-09 13:05:50 +02:00
zakuro
00399b49ab
v.util: add util.tabs() ( #9211 )
2021-03-09 13:03:25 +02:00
Vassilis Panagiotopoulos
b893373e63
cgen: make .alias fields in structs use their proper string format, instead of the default %d ( #9197 )
2021-03-08 23:36:59 +02:00
Delyan Angelov
d7049ae2da
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result ( #8974 )
2021-03-08 20:52:13 +02:00
yuyi
10c9f61d61
checker: check empty map invalid syntax ( fix #9162 ) ( #9186 )
2021-03-08 19:48:17 +02:00
yuyi
568faeed77
cgen: add `expr_string() and remove redundant codes ( #9188 )
2021-03-08 12:46:39 +02:00
yuyi
f2e570d63c
tests: add for
tests of labelled continue and break ( #9189 )
2021-03-08 12:45:12 +02:00
Delyan Angelov
33bd22eda9
vlib/v/gen/tests: remove obsolete generation tests (used during the AST migration from v1 to v2)
2021-03-07 18:47:58 +02:00
pancake
ed9ca0b7bd
build: add address sanitizer make target ( #9044 )
2021-03-07 16:44:54 +01:00
zakuro
4c3ce97763
parser: fix Enum.value when Enum is an imported symbol ( #9046 )
2021-03-07 16:44:38 +01:00
Miccah
a1e0f2bc46
gen: add argument names to compile-time method struct ( #9174 )
2021-03-07 14:28:43 +01:00
yuyi
1b47e2953d
checker: check undefined ident of struct ( #9164 )
2021-03-07 14:09:38 +01:00
Delyan Angelov
f1c4e962f4
tests: add tests for -d debug
, -cg
, -g
in combination for [if debug]fn
etc
2021-03-07 12:42:30 +02:00
Delyan Angelov
64bc2fb40a
v: fix [if debug] fn abc(){} ... abc()
2021-03-07 12:05:07 +02:00
Delyan Angelov
c15de57f0f
tests: simplify the profile_test.v example program to not use net
...
(avoids unrelated openssl dependency)
2021-03-07 12:05:06 +02:00
Delyan Angelov
d0b89c5675
tests: rename for_c_multi_vars.v to for_c_multi_vars_test.v
2021-03-07 12:05:06 +02:00
yuyi
82085b0140
cgen: fix for_in map of fixed_array ( #9133 )
2021-03-07 11:41:08 +02:00
zakuro
45d51c76da
v.util: add an iabs(x) helper ( #9172 )
2021-03-07 11:24:05 +02:00
Lukas Neubert
6048d0e974
fmt: fix backslash doubling in attribute string args ( #9175 )
2021-03-07 09:44:58 +02:00
Lukas Neubert
053d6870d2
fmt: respect user choice of empty lines between type declarations ( #9135 )
2021-03-06 21:05:55 +02:00
Lukas Neubert
fdcfe397d4
fmt: write empty or blocks the same as empty fn bodies, empty structs, etc ( #9136 )
2021-03-06 21:04:51 +02:00
Lukas Neubert
043c29cf95
fmt: fix string interpolation with CastExpr ( #9137 )
2021-03-06 20:47:19 +02:00
zakuro
7333b1706c
checker: minor cleanup: clear_flag(.optional) in check_expr_opt_call ( #9139 )
2021-03-06 20:42:34 +02:00
zakuro
b83530e0ed
fmt: extract part of fmt.v into struct.v ( #9141 )
2021-03-06 20:40:44 +02:00
Lukas Neubert
7f7f9dca6b
parser,fmt: fix regression with non-void arrays in if conditions ( #9161 )
2021-03-06 20:39:38 +02:00
Delyan Angelov
849cde245c
v: support dump(expr) ( #9160 )
2021-03-06 18:09:28 +01:00
yuyi
c802515e71
cgen: minor optimization in gen_code buffer init ( #9143 )
2021-03-06 12:03:38 +02:00
Delyan Angelov
fa530683c7
v: fix warnings for v self
2021-03-05 17:24:00 +02:00
Alexander Medvednikov
845e8decce
x64: basic mach-o and arm64 support
2021-03-05 17:52:39 +03:00
Joe Conigliaro
818be80581
parser: fix [] in if expr. closes #9131
2021-03-06 01:43:34 +11:00
joe-conigliaro
2d73411396
checker: define missing C fn args & check C & JS args ( #8770 )
2021-03-05 17:41:11 +03:00
Lukas Neubert
ead2ba6004
fmt: proper single line check for ConcatExpr ( #9121 )
2021-03-05 15:36:49 +03:00
yuyi
cbbfb460a7
cgen: fix for_in fixed_array ( #9129 )
2021-03-05 15:35:09 +03:00
zakuro
9ba312066e
fmt: extract type decls code into functions to cleanup ( #9126 )
2021-03-05 15:34:51 +03:00
Delyan Angelov
0f042124cb
tests: support fn test_fn() ? { opt()? }
2021-03-05 14:18:21 +02:00