Louis Schmieder
|
0bb587c8c2
|
checker: fix defer ident handling & fix defer optional error message (#10975)
|
2021-07-30 20:29:06 +03:00 |
Delyan Angelov
|
06d1422a05
|
ast,checker,cgen: support simple `const x = u16(0x53)` without using _vinit()
|
2021-07-30 17:22:27 +03:00 |
Delyan Angelov
|
c31397e17d
|
tests: fix `v test-self` running locally
|
2021-07-30 09:26:05 +03:00 |
Alexander Medvednikov
|
ec92964bb0
|
checker: make interface init check a warning for now
|
2021-07-30 03:32:02 +03:00 |
Louis Schmieder
|
7c504920e1
|
checker: fix negative values for unsigned integers (#10976)
|
2021-07-30 03:27:59 +03:00 |
Daniel Däschle
|
6fa8e4269e
|
checker: force interface init (#10910)
|
2021-07-30 03:18:20 +03:00 |
yuyi
|
57f30668e3
|
v.checker: fix `a.map(voidfn(it))` (#10985)
|
2021-07-29 11:43:56 +03:00 |
Uwe Krüger
|
08aa6c08f6
|
all: more improvements for global variables (#10986)
|
2021-07-29 10:57:31 +03:00 |
yuyi
|
9f4431544d
|
checker: fix typo in selector_expr() (#10977)
|
2021-07-28 08:28:55 +03:00 |
Uwe Krüger
|
45ad48d76a
|
cgen: properly handle initialization expression for globals (#10981)
|
2021-07-28 08:11:55 +03:00 |
Delyan Angelov
|
6134c4870b
|
v.util: extract v.util.version, use it to speed up building `v repl`, `v up` and `v doctor`
|
2021-07-27 12:59:56 +03:00 |
yuyi
|
4cf91a28f6
|
checker: fix generics interface with multi generic types (#10964)
|
2021-07-26 08:54:57 +03:00 |
Delyan Angelov
|
0bcb955258
|
checker: fix regression of anon fns that have loops with break/continue
|
2021-07-25 10:46:31 +03:00 |
Uwe Krüger
|
55c5b9ce7b
|
cgen: panic with error message when `go` command fails (#10943)
|
2021-07-25 01:13:34 +03:00 |
zakuro
|
3979e5c5ff
|
v.parser: show better position for sort struct init warning (#10939)
|
2021-07-24 20:41:59 +03:00 |
Daniel Däschle
|
3be8ef3b5a
|
checker: check duplicated field and method (only for fields that are anon-fns for now) (#10927)
|
2021-07-24 16:06:09 +03:00 |
Delyan Angelov
|
b9771ea120
|
v.checker: small cleanup for incomplete match errors
|
2021-07-24 13:32:55 +03:00 |
Uwe Krüger
|
1e5627e777
|
parser: don't require unary `>` prefix for `select` timeout (#10928)
|
2021-07-23 23:24:27 +03:00 |
Louis Schmieder
|
1999850f88
|
checker: disallow labels in defer statements (#10901)
|
2021-07-23 22:35:05 +03:00 |
playX
|
69cbdf9fdc
|
v.gen.js, os_js: port the OS module to JS (#10872)
|
2021-07-23 18:04:36 +03:00 |
Delyan Angelov
|
6313ed6a79
|
checker,cgen: fix `-os cross` support for `$if !solaris { #include <sys/ptrace.h> }`
|
2021-07-23 16:24:42 +03:00 |
Delyan Angelov
|
c797e1460d
|
checker: do not skip any of the top level `$if OS {` branches in `-os cross` mode
|
2021-07-23 15:53:03 +03:00 |
Louis Schmieder
|
26db3b0995
|
orm: redesign orm (re-write it in V) (#10353)
|
2021-07-23 12:33:55 +03:00 |
Daniel Däschle
|
a2de3ffcdb
|
checker: check if condition optional (#10921)
|
2021-07-23 08:52:51 +03:00 |
Daniel Däschle
|
2c0c211c79
|
all: implement accessing embedded field and method of aggregate (#10907)
|
2021-07-23 01:14:39 +03:00 |
Daniel Däschle
|
f40090e8ff
|
checker: fix break inside anon fn (#10914)
|
2021-07-23 01:13:36 +03:00 |
Louis Schmieder
|
742f6f849c
|
checker: check using a map as a struct init in parameter (#10904)
|
2021-07-22 10:42:59 +03:00 |
Daniel Däschle
|
12884e9eb7
|
checker: disallow invalid pointer arithmetic (#10888)
|
2021-07-21 23:39:49 +03:00 |
shadow
|
591af866ba
|
checker: prohibit returning a fixed array (#10882)
|
2021-07-21 11:39:22 +03:00 |
Daniel Däschle
|
f6402eae10
|
checker: check `match` with type alias (#10863)
|
2021-07-20 15:06:36 +03:00 |
Daniel Däschle
|
60b705b4c4
|
checker, gen: implement basic struct embed direct field init support (#10871)
|
2021-07-20 15:06:06 +03:00 |
Daniel Däschle
|
ad3835b598
|
parser: deprecate short struct init (#10842)
|
2021-07-20 11:17:08 +03:00 |
playX
|
425ca5e3c3
|
v.gen.js: add three backend options for JS, and comptime if support (#10859)
|
2021-07-19 15:55:03 +03:00 |
yuyi
|
8e99a018df
|
checker, cgen: fix generics interface method (#10858)
|
2021-07-19 13:29:46 +03:00 |
yuyi
|
cf82bd3407
|
checker: fix fixed array with const unint type size (fix #10826) (#10853)
|
2021-07-19 12:44:03 +03:00 |
yuyi
|
fdba3607af
|
checker: fix generics fn selector expr with unexpected symbol (#10851)
|
2021-07-19 09:16:15 +03:00 |
Delyan Angelov
|
241a7b760d
|
strconv,checker,cgen: fix -cstrict compilation of hello_world.v
|
2021-07-19 01:08:48 +03:00 |
Delyan Angelov
|
48546d0f45
|
all: do compile time const evaluation for `const x = "abc" + "xyz"` and `const x = 16 * 1024 + 5` (fix const prealloc_block_size)
|
2021-07-18 22:59:18 +03:00 |
shadowninja55
|
eb65ad078d
|
checker: prohibit passing non-lvalue as `voidptr` (#10838)
|
2021-07-18 15:04:16 +03:00 |
yuyi
|
8b8f496762
|
checker: fix generics fn return generic interface (fix #10818) (#10831)
|
2021-07-18 08:55:19 +03:00 |
Delyan Angelov
|
568aa742b2
|
v.parser: improve conditions for debugging ast.CastExpr parsing
|
2021-07-17 17:49:29 +03:00 |
yuyi
|
3a0fa550b6
|
checker: fix generics fn inferring map type (fix #10835) (#10839)
|
2021-07-17 17:49:21 +03:00 |
spaceface
|
22fcbe70a2
|
checker: allow omitting `{}` in trailing struct args (#10832)
|
2021-07-17 15:44:44 +03:00 |
shadowninja55
|
0d587d3580
|
checker: prohibit using non-lvalue as mut receiver (#10790)
|
2021-07-16 13:03:40 +03:00 |
yuyi
|
ddaac5af92
|
checker: fix generics with multi generic struct types (#10808)
|
2021-07-15 17:39:55 +03:00 |
shadowninja55
|
7c0be629ab
|
checker: prohibit fixed array to fixed array assignment where elem_typ is a pointer (#10775)
|
2021-07-15 08:38:03 +03:00 |
spaceface
|
6e942bf4c2
|
v: initial support for generic interfaces and sumtypes (#10795)
|
2021-07-15 08:29:13 +03:00 |
shadowninja55
|
de6918b8c9
|
checker: fix hex literal overflow check (#10782)
|
2021-07-14 22:33:02 +03:00 |
crthpl
|
5089eb4a84
|
parser: fix pointer cast expressions hack (#10777)
|
2021-07-13 12:01:24 +03:00 |
Delyan Angelov
|
85564b7b83
|
vinix: support -os vinix (part 1)
|
2021-07-13 11:24:09 +03:00 |