yuyi
|
8225622da5
|
checker: check smartcasting requires either an immutable value, or an explicit mut keyword before the value (#16654)
|
2022-12-12 09:22:56 +02:00 |
|
yuyi
|
73e886eafe
|
checker: fix generic fn returning result (#16646)
|
2022-12-11 12:34:58 +02:00 |
|
Felipe Pena
|
f365771499
|
cgen: fix nested struct generation for globals for gcc (#16614)
|
2022-12-08 21:38:01 +02:00 |
|
Felipe Pena
|
2261606b56
|
checker: disallow Bar{...foo} when Bar needs more fields, than what foo has (#16609)
|
2022-12-07 16:56:07 +02:00 |
|
yuyi
|
4eb81d2f05
|
checker: improve error messages of missing generic type names (#16610)
|
2022-12-07 11:29:18 +02:00 |
|
Delyan Angelov
|
48a7de643e
|
all: support typeof[ T ]().idx and typeof[ T ]().name, where T can be any type, including ![]&string (#16513)
|
2022-12-07 11:26:27 +02:00 |
|
yuyi
|
921416d821
|
parser: fix parsing generic types using '[]' in anon fn decl (#16605)
|
2022-12-06 18:15:59 +02:00 |
|
Felipe Pena
|
cf015e5073
|
checker: add clearer errors for break/continue used within a $for loop (#16600)
|
2022-12-06 17:27:59 +02:00 |
|
Swastik Baranwal
|
ada8643ac5
|
checker: disallow using builtin type names for const names (#16599)
|
2022-12-06 15:44:25 +02:00 |
|
yuyi
|
a96e2e7093
|
parser: fix parsing embedded generic interface using '[]' (#16603)
|
2022-12-06 12:37:36 +02:00 |
|
Felipe Pena
|
edfaa76b3e
|
checker: fix panic caused by compile-time code within or block (#16602)
|
2022-12-06 09:26:04 +02:00 |
|
yuyi
|
50110d4c19
|
all: replace generic '<>' with '[]' in .vv files (#16593)
|
2022-12-05 16:32:15 +02:00 |
|
yuyi
|
59c979c8d2
|
checker: check generic interface type specifing type names (fix #16576) (#16591)
|
2022-12-05 10:05:32 +02:00 |
|
Swastik Baranwal
|
ce06c2818d
|
checker: add disallow none operations and range (#16584)
|
2022-12-05 08:50:36 +02:00 |
|
Delyan Angelov
|
c77344e0a2
|
checker: add a return *x suggestion, to the error fn ... expects you to return a non reference type ..., but you are returning ... instead
|
2022-12-02 10:40:36 +02:00 |
|
yuyi
|
f16722596c
|
all: replace generic '<>' with '[]' in error messages and comments (#16571)
|
2022-12-02 09:22:48 +02:00 |
|
Tim Marston
|
cbe64cb543
|
checker: allow struct updates from struct aliases (#16567)
|
2022-12-02 00:28:10 +02:00 |
|
Swastik Baranwal
|
58e150df12
|
parser: add a better error msg for using ..., instead of .. in for a in 1...10 { (#16547)
|
2022-11-28 10:37:12 +02:00 |
|
yuyi
|
d257e43932
|
checker: fix 'return none' in void optional function (#16545)
|
2022-11-28 10:29:02 +02:00 |
|
Vincenzo Palazzo
|
8543d5e055
|
checker: improve mut arg error msg (#16540)
|
2022-11-27 07:07:35 +03:00 |
|
yuyi
|
ef5be22f81
|
all: replace generic <> with [] - part 2 (#16536)
|
2022-11-26 18:23:26 +02:00 |
|
Swastik Baranwal
|
a9b41d2980
|
all: add support for const ident in match range (#16526)
|
2022-11-26 08:56:00 +02:00 |
|
yuyi
|
dee75fe970
|
checker: perfect infer_struct_generic_types() (#16524)
|
2022-11-24 19:30:02 +02:00 |
|
yuyi
|
7c7ebd648d
|
checker: check assigning generic function to a variable (#16507)
|
2022-11-22 17:56:49 +02:00 |
|
yuyi
|
27cdf5ae0e
|
checker: minor cleanup in checker module (remove pub from most of checker's methods) (#16505)
|
2022-11-22 17:50:26 +02:00 |
|
yuyi
|
cc7e6006f9
|
checker: fix generic fn with short generic struct init syntax (#16504)
|
2022-11-22 13:27:49 +02:00 |
|
Delyan Angelov
|
0e727ec50a
|
checker: cleanup obsolete code for compatibility between byteptr and &byte (#16494)
|
2022-11-20 16:44:58 +02:00 |
|
Swastik Baranwal
|
06764bc559
|
checker: disallow taking address of optional fields for now (#16487)
|
2022-11-19 22:03:39 +02:00 |
|
shove
|
79b4cfb42a
|
all: correct the first letter of error message from uppercase to lowercase (#16481)
|
2022-11-19 10:43:25 +02:00 |
|
shove
|
74efd2621b
|
checker: fix struct field unsign type check (fix #16457) (#16458)
|
2022-11-17 09:20:42 +02:00 |
|
Swastik Baranwal
|
360457e021
|
checker: disable overriding and importing of builtin sym types (#16452)
|
2022-11-17 09:10:03 +02:00 |
|
shove
|
37700502f5
|
all: implement struct field optional and disallow storing result (#16392)
|
2022-11-17 07:51:50 +02:00 |
|
Larpon
|
b60132d2ac
|
checker: rename test assing -> assign (#16446)
|
2022-11-16 14:46:36 +02:00 |
|
Delyan Angelov
|
ddc1a1fc08
|
checker,cgen: support const y = term.yellow, then println(y('abc')) (#16436)
|
2022-11-15 19:51:57 +02:00 |
|
Swastik Baranwal
|
dc81d755e8
|
checker: disallow using unsafe { none } (#16431)
|
2022-11-15 18:55:07 +02:00 |
|
yuyi
|
017ace6ea7
|
vfmt: change all '$expr' to '${expr}' (#16428)
|
2022-11-15 16:53:13 +03:00 |
|
Swastik Baranwal
|
58cee6ccc8
|
checker: disallow none type in struct fields (#16425)
|
2022-11-14 17:48:00 +03:00 |
|
yuyi
|
91ecfb917c
|
checker: fix generic fn casting &u8 to &alias to u32 (#16420)
|
2022-11-14 17:37:53 +03:00 |
|
yuyi
|
1a4d1aece4
|
checker: minor cleanup and optimization in method_call() (#16421)
|
2022-11-13 22:33:36 +02:00 |
|
yuyi
|
f31a3b4250
|
checker: check sumtype argument mismatch in generic methods (fix #16340 part2) (#16403)
|
2022-11-13 11:58:53 +03:00 |
|
yuyi
|
993e21e85b
|
checker: check fntype mismatch of struct field init (fix #16372) (#16381)
|
2022-11-10 20:19:19 +02:00 |
|
yuyi
|
196b01aef7
|
all: minor cleanup of optional and result (#16382)
|
2022-11-10 20:14:20 +02:00 |
|
shove
|
26d643fc5d
|
all: rollback to old interpolation (step 3) (#16380)
|
2022-11-10 15:05:34 +03:00 |
|
Delyan Angelov
|
bbae7a705f
|
checker: fix incomplete implicit ast.CastExpr{} replacements
|
2022-11-10 13:59:22 +02:00 |
|
Delyan Angelov
|
7543b769ad
|
checker: allow for all.children := { "abc": rect, "def": rectangle()}, where children is map[string]Widget, without needing explicit casts for all the map values
|
2022-11-10 13:59:21 +02:00 |
|
yuyi
|
46921480fc
|
comptime: fix embed file with variable argument (fix #16360) (#16375)
|
2022-11-10 04:09:51 +02:00 |
|
Swastik Baranwal
|
bbd0603b41
|
checker: add check for unknown generic types in type alias decl (#16377)
|
2022-11-10 04:08:00 +02:00 |
|
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 |
|