yuyi
f26626117d
cgen: fix match struct type cond ( #10421 )
2021-06-11 11:58:25 +03:00
crthpl
6576d876fc
cgen: support a `[_naked]` fn attribute ( #10418 )
2021-06-11 11:03:39 +03:00
yuyi
9d852e22b2
cgen: fix match array or map cond ( #10411 )
2021-06-10 21:33:35 +03:00
Delyan Angelov
f351ff037e
Revert "checker: check generic type indexing error ( #10345 )"
...
This reverts commit 103c777ad6 .
Passing references to values should be allowed, and is already used in vinix:
`pub fn cas<T>(_here &T, _ifthis T, writethis T) bool {`
2021-06-09 11:46:17 +03:00
yuyi
103c777ad6
checker: check generic type indexing error ( #10345 )
2021-06-08 17:23:44 +03:00
yuyi
cd464010d4
cgen: fix match with multi sumtype exprs ( #10377 )
2021-06-07 14:16:30 +03:00
crthpl
8a497080b3
cgen: fix assembly in generic fns ( #10370 )
2021-06-07 10:53:33 +03:00
yuyi
114c382c46
parser: fix generic fn typeof name ( #10363 )
2021-06-06 17:40:13 +03:00
Lukas Neubert
c14b357fec
checker: fix enums in builtin ( #10366 )
2021-06-06 16:27:46 +03:00
yuyi
329a6c974e
table, checker, cgen: implement generic fn infering fixed array ( #10352 )
2021-06-06 01:11:08 +03:00
Lukas Neubert
3f00ff465b
checker: check or block inside println calls ( #10354 )
2021-06-05 23:01:58 +03:00
crthpl
9553c5a4e6
parser: fix multiple output modifiers in asm ( #10347 )
2021-06-04 23:18:11 +03:00
Ehsan Afzali
672bb6ca7f
parser: fix required function members in struct ( #10299 )
2021-06-03 02:55:58 +03:00
yuyi
b0bafa6376
cgen: fix or_block in for declaration ( #10317 )
2021-06-03 01:18:52 +03:00
Delyan Angelov
b28def7c11
tests: add vlib/v/tests/failing_tests_test.v, support `testdata` in `v test-self` too
2021-06-03 00:32:09 +03:00
Delyan Angelov
14d09aa7c2
ci: fix failing `v -cstrict vlib/v/tests/channels_test.v`
2021-06-01 16:48:49 +03:00
Delyan Angelov
5cb2683e97
v.gen.c,v.markused: fix `println(ch)` when ch is a channel
2021-06-01 13:46:59 +03:00
zakuro
0afeba5588
cgen: fix C error with clang, when declaring a fn type with an alias type argument ( #10297 )
2021-06-01 12:37:27 +03:00
Wertzui123
148bb31f6e
v.parser: allow for `if x { $if y {} } else {}`, fix #10243 ( #10294 )
2021-06-01 12:19:39 +03:00
yuyi
9fc5b9dc54
cgen: fix match in map or expr ( #10283 )
2021-05-31 17:10:33 +03:00
Uwe Krüger
d39a55ac11
checker: forbid leaving function from inside `defer` block ( #10285 )
2021-05-31 17:09:57 +03:00
Louis Schmieder
38796521fa
all: allow defer use from other scope ( #10284 )
2021-05-31 14:43:44 +03:00
yuyi
5aa4f622b6
checker: fix match expr returning optional ( #10281 )
2021-05-31 12:34:55 +03:00
Lukas Neubert
5b9256ba0b
cgen: write alias typedefs just before interfaces ( #10272 )
2021-05-31 12:26:06 +03:00
Uwe Krüger
aa861d1cac
docs: describe array/slice behaviour ( #10252 )
2021-05-30 14:48:33 +03:00
yuyi
13ddfaa433
checker: fix generic fn infer nested struct ( #10262 )
2021-05-30 14:06:52 +03:00
yuyi
e4f6369cd1
checker: fix match error to none ( #10245 )
2021-05-29 19:30:57 +03:00
yuyi
8785599094
checker, cgen: fix optional with if expr ( #10242 )
2021-05-29 10:00:12 +03:00
Lukas Neubert
6b683d31ac
v.parser: support imported enums as map keys ( #10234 )
2021-05-28 20:09:03 +03:00
yuyi
9ea753e853
checker: fix generic with fixed array parameter ( #10233 )
2021-05-28 18:51:55 +03:00
Alexander Medvednikov
ca8158ac41
parser: handle casts in match expressions; c2v: minor fixes
2021-05-28 17:59:43 +03:00
Ruofan XU
4e55b9c08e
example: improve binary search tree example ( #10226 )
2021-05-27 20:13:02 +03:00
Delyan Angelov
2b62dca000
v: support for `$if threads {}, depending on whether `go ` was used at all ( #10227 )
2021-05-27 18:36:07 +03:00
Uwe Krüger
8828054e5b
builtin: fix arrays/slices memory bug ( #10219 )
2021-05-27 15:50:06 +03:00
zakuro
607dbd36d7
parser: set is_public of TypeSymbol for fn type decl ( #10212 )
2021-05-27 10:17:08 +03:00
yuyi
7c0cd2f41d
checker, cgen: fix match with complex sumtype exprs ( #10215 )
2021-05-27 10:13:50 +03:00
yuyi
cf07375d1b
checker: fix multi types generic struct init ( #10201 )
2021-05-25 19:51:55 +03:00
yuyi
f3274700cd
cgen: fix generic struct to string ( #10191 )
2021-05-25 07:45:54 +03:00
Delyan Angelov
13d1d28db1
v.parser: fix -autofree for script mode programs that do not have explicit `fn main(){}`
2021-05-24 14:42:09 +03:00
penguindark
d8d05e0106
all: new string interpolation in pure V ( #10181 )
2021-05-24 05:20:45 +03:00
yuyi
eb5ac23988
checker: fix match expr with if expr ( fix #10177 #10178 ) ( #10179 )
2021-05-23 17:59:57 +03:00
Lukas Neubert
79b97fa361
fmt: keep names of parameters in anonymus function ( #10173 )
2021-05-23 05:54:39 +03:00
yuyi
565dbc4051
checker: fix inferring method receiver types ( #10166 )
2021-05-22 11:04:19 +03:00
yuyi
9be596ef12
checker: fix generic struct with anon fn type ( #10161 )
2021-05-21 17:21:18 +03:00
zakuro
be92f81b2e
checker: fix type error in `f<T>(fn (v T))` with multiple different Ts ( #10154 )
2021-05-21 06:13:04 +03:00
yuyi
bf69d20353
checker: fix generic struct with anon fn parameter ( #10147 )
2021-05-20 16:57:27 +03:00
Delyan Angelov
da090f91d8
cgen: fix using and auto printing `x := [16]&Type{}`
2021-05-20 15:59:02 +03:00
yuyi
492d264d08
checker: fix generic structs init ( #10134 )
2021-05-20 09:18:51 +03:00
Enzo
906b207e58
checker: deprecate using V strings in C function calls ( #10140 )
2021-05-20 09:17:44 +03:00
spaceface
9ddf1ec327
cgen: fix accessing fields in propagated optional subexpressions ( #10136 )
2021-05-19 21:28:17 +03:00