shove
|
a199a9afab
|
all: rollback to old interpolation (step 2) (#16373)
|
2022-11-09 17:37:27 +03:00 |
|
shove
|
dd5f6186a1
|
all: rollback to old interpolation (step 1) (#16370)
|
2022-11-09 11:57:54 +03:00 |
|
Swastik Baranwal
|
7830597b66
|
checker: add check for multi level fn aliases (#16361)
|
2022-11-09 10:36:39 +02:00 |
|
Taegon Kim
|
ce79c9c876
|
checker: extract valid_comptime_ constants into v.checker.constants (#16371)
|
2022-11-09 10:07:21 +02:00 |
|
Taegon Kim
|
bc30608e92
|
checker: always trigger error for anon fns without a body block (#16358)
|
2022-11-08 15:50:59 +02:00 |
|
Taegon Kim
|
dc9997f58c
|
fmt: fix - v fmt transforms compile time options in some cases (#16351)
|
2022-11-08 08:05:48 +02:00 |
|
Swastik Baranwal
|
ca484430e0
|
checker: check int overflow for const vars (#16332)
|
2022-11-06 08:22:28 +03:00 |
|
Delyan Angelov
|
b52b8429d4
|
vfmt: implement support for // vfmt off and // vfmt on, with it, v fmt -w . now works. (#16335)
|
2022-11-05 09:08:01 +03:00 |
|
shove
|
0e8d148fe7
|
checker: give a checker error message on print(1), print(2) (fix #16311) (#16314)
|
2022-11-03 17:28:59 +02:00 |
|
shove
|
5c7ceb16dd
|
checker: fix the check of types not implemented by interfaces in infix key_is and not_is (fix #16282 #16298) (#16284)
|
2022-11-03 12:18:30 +02:00 |
|
shove
|
dddcf423db
|
all: replace x[x.len-1] with x.last() (#16296)
|
2022-11-02 21:08:33 +02:00 |
|
yuyi
|
4e05e07b94
|
checker: check undefined ident in closure anon fn (fix #16274) (#16278)
|
2022-11-02 15:41:44 +02:00 |
|
shove
|
e5d1881e1a
|
checker: fix multiple pointer check of fn and method args (fix #16261 #16262 #16263) (#16275)
|
2022-11-01 19:05:34 +02:00 |
|
yuyi
|
339bd0c4b5
|
checker: check fn type mismatch of return result type fn (#16269)
|
2022-10-31 14:05:43 +02:00 |
|
lemon
|
54b623743d
|
native, checker: cast float_literal to f32 explicitly in code gen (#16254)
|
2022-10-30 10:31:18 +02:00 |
|
Swastik Baranwal
|
a988ef3474
|
checker: add check for mut ident but not if mut ident is for interfaces (#16214)
|
2022-10-29 06:36:44 +03:00 |
|
yuyi
|
ee782e9119
|
checker: fix return error with multi_return optional (#16250)
|
2022-10-29 06:34:45 +03:00 |
|
Delyan Angelov
|
02c3af2432
|
all: add support for enum Xyz as u64 { + tests (#16246)
|
2022-10-29 06:32:20 +03:00 |
|
yuyi
|
daa2f90023
|
scanner: fix and resotre string interpolation tests (#16242)
|
2022-10-28 18:39:32 +03:00 |
|
yuyi
|
992106c6f7
|
tests: fix ci errors temporary (#16237)
|
2022-10-28 06:46:20 +03:00 |
|
yuyi
|
992b502198
|
db, json, time, term: change optional to result (#16201)
|
2022-10-26 11:26:28 +03:00 |
|
shove
|
fef4dd94e9
|
ast, checker, cgen: enable unsafe { nil } with reference to interface fields in structs (fix #16198) (#16199)
|
2022-10-26 09:39:23 +03:00 |
|
yuyi
|
03bef24456
|
checker: fix returning embedded error result (#16208)
|
2022-10-25 18:17:48 +03:00 |
|
shove
|
701586fa84
|
checker, cgen: enable calls to methods of the parent element array, when an array element is an alias (fix #16169) (#16187)
|
2022-10-24 12:02:24 +03:00 |
|
Swastik Baranwal
|
f25dfa9d8c
|
checker: add error for unwrapped result in infix expr (#16175)
|
2022-10-24 11:53:35 +03:00 |
|
yuyi
|
48f43f11ea
|
all: change optional to result in vlib/v. (#16177)
|
2022-10-24 11:51:20 +03:00 |
|
shove
|
721dbec2e4
|
checker: fix missed check on the initialization of result struct fields (fix #16152) (#16153)
|
2022-10-22 20:02:11 +03:00 |
|
shove
|
b8b2b4ad0a
|
checker: fix the pos information in the warning message, when the label is not used (fix #16146) (#16148)
|
2022-10-22 19:26:38 +03:00 |
|
Delyan Angelov
|
a23e06184d
|
checker: fix taking a closure of x, where x may be coming from a non trivial parent scope, like for x in y { or x,y := multi() (fix #16141) (#16147)
|
2022-10-22 15:53:27 +03:00 |
|
shove
|
e863191ff6
|
checker: fix generic information is lost of the map built-in method call (fix #16077) (#16134)
|
2022-10-21 23:07:05 +03:00 |
|
yuyi
|
ab78d5a7ba
|
parser: check undefined variable in if guard (#16138)
|
2022-10-21 22:48:59 +03:00 |
|
Makhnev Petr
|
2e8b9e3b92
|
v fmt: fix extra space for anon struct (#16131)
|
2022-10-21 10:38:19 +03:00 |
|
yuyi
|
f8a28b5a5d
|
checker: check generic method called with a variadic argument mismatch (fix #16106) (#16110)
|
2022-10-20 15:28:30 +03:00 |
|
Swastik Baranwal
|
ac63fa1b11
|
parser: improve error for fixed array, when it has len and cap attributes in the initialisation list (#16120)
|
2022-10-20 13:36:13 +03:00 |
|
Delyan Angelov
|
ffcdac4201
|
ci: fix v_tictactoe.out after 05a1c3e
|
2022-10-19 22:33:10 +03:00 |
|
yuyi
|
612faac0f0
|
all: change index expr returning optional to result too (#16097)
|
2022-10-19 21:04:16 +03:00 |
|
Delyan Angelov
|
eda65ad660
|
parser,checker,builder: make the checker more robust with -check over files with syntax/parsing errors
|
2022-10-19 18:14:58 +03:00 |
|
yuyi
|
556244576d
|
checker: check unused last expression in if (fix #16084) (#16088)
|
2022-10-17 18:15:01 +03:00 |
|
Delyan Angelov
|
95d2c58148
|
checker: produce more informative error messages on ~,!,-,<- operator type mismatches
|
2022-10-16 20:27:40 +03:00 |
|
yuyi
|
f6844e9766
|
all: change optional to result of io (#16075)
|
2022-10-16 09:28:57 +03:00 |
|
yuyi
|
39d2aa71df
|
checker: check generic closure fn declaration (#16069)
|
2022-10-14 10:24:10 +03:00 |
|
shove
|
aabda5a525
|
checker: allow get_ref() or { unsafe{nil} }, as well as fn get_ref() ?&Type { return unsafe { nil } } (fix: #16062) (#16063)
|
2022-10-13 19:49:10 +03:00 |
|
shove
|
51a9e89c4a
|
ast: disallow threads << go fn()?{} and threads << go fn()!{} (fix #16061) (#16064)
|
2022-10-13 19:37:27 +03:00 |
|
Swastik Baranwal
|
3e33f4a11d
|
checker: disallow nil assignment on non pointer struct fields (#16056)
|
2022-10-13 10:36:59 +03:00 |
|
shove
|
4fbb29a2c0
|
checker: disallow x := fncallexpr() or { X{} } , when the fn result type is ?&X (fix #16050) (#16051)
|
2022-10-12 22:49:30 +03:00 |
|
yuyi
|
6bdd11e53b
|
checker: check error for fn call with extra parenthesis (#16052)
|
2022-10-12 22:43:59 +03:00 |
|
Swastik Baranwal
|
05fc7d3a72
|
checker: disallow function cast outside unsafe (#16030)
|
2022-10-11 15:46:35 +03:00 |
|
yuyi
|
dab1c8a71d
|
all: clean up optional and result handling (#16034)
|
2022-10-11 09:23:57 +03:00 |
|
yuyi
|
8f3f717736
|
checker: check type mismatch of return match expr (#16019)
|
2022-10-10 19:41:55 +03:00 |
|
yuyi
|
89eb8358cf
|
checker: fix fn returning ![]string called in main (#16023)
|
2022-10-10 19:41:24 +03:00 |
|