Commit Graph

75 Commits (410b57b2fa6412508c9f8977b8cc808a3a3bce11)

Author SHA1 Message Date
yuyi f8b8950b96
checker: check mut interface arguments (#13479) 2022-02-16 11:53:41 +02:00
yuyi b5379255da
checker, cgen: fix error for struct embed with fn type (#13450) 2022-02-12 20:55:40 +02:00
Delyan Angelov 799c95dc4e
tests: filter test_ fns with params from the list of automatically run test functions (fix #13443) 2022-02-12 17:30:20 +02:00
yuyi 7178367de0
all: fix error for comptime for in field with generic fn (fix #13409) (#13439) 2022-02-11 22:00:13 +02:00
Tim Basel 9d0a5942ac
builtin: change IError `msg` and `code` to methods + fix vlib, add a deprecation notice for the old usages (#13041) 2022-02-11 15:52:33 +02:00
Delyan Angelov 9ed18efa53
checker: error on redefining any of the public builtin functions, not just ['print', 'println', 'eprint', 'eprintln', 'isnil', 'panic', 'exit'] (#13419) 2022-02-10 12:26:30 +02:00
div72 cec7e91714
v.parser, v.checker, v.gen: add support for [translated] tag (#13373) 2022-02-06 00:16:02 +02:00
yuyi b34860e39b
ast, checker: fix error for calling complex nested generic type function (fix #13025) (#13328) 2022-01-31 13:00:27 +02:00
Delyan Angelov e1a2ab345d
parser,ast,checker: add support for `[deprecated: "use another module"] module obsolete` 2022-01-27 12:34:14 +02:00
yuyi 291a1ffd8d
token: rename Position to Pos, rename position() to pos() (#13279) 2022-01-26 12:36:28 +02:00
yuyi 3bfad1b943
checker: fix method call errors for generic struct instances (#13261) 2022-01-24 12:45:19 +02:00
yuyi 39f80840d7
checker: check type mismatch in args of generics method calls (fix #13193) (#13196) 2022-01-17 16:48:59 +02:00
trueFireblade 9fd65b5b18
checker: fix unrecognised empty argument names in anon fn's (#13176) 2022-01-15 08:23:30 +02:00
yuyi 1654d8b810
checker: fix generics with nested generic fn inst call (#13059) 2022-01-06 18:33:37 +02:00
Delyan Angelov b3930c3d6a
checker: add error for .map() calling a fn with multiple return values (prevent inaccessible tuple leak) 2022-01-04 23:10:58 +02:00
yuyi 7622ff3f54
checker: check using const var as function (#13006) 2022-01-01 09:15:43 +02:00
Delyan Angelov 43fee6b3d5
all: fix registration of methods with the same name on different generic structs 2021-12-28 21:42:48 +02:00
Alexander Medvednikov 6176ce9f03 all: c2v fixes 2021-12-28 08:00:56 +03:00
yuyi 34e175a343
checker: minor cleanup of the fns classification (#12977) 2021-12-27 13:11:10 +02:00
pancake 04be2465dc
cgen: check call argument on methods (#12965) 2021-12-26 11:53:56 +02:00
yuyi d0ad79cd8b
checker: fix generic array builtin method call (#12957) 2021-12-24 14:42:23 +02:00
Delyan Angelov e256f1b2aa
checker,cgen: stabilise generic method handling (fix a source code ordering issue) 2021-12-22 18:03:46 +02:00
yuyi cd0b581445
ast: rename 'table.get_type_symbol()' to 'table.sym()' and more related calls (#12898) 2021-12-19 18:25:18 +02:00
Delyan Angelov 3afbb9e90a
all: split all backends into cmd/tools/builders (#12811) 2021-12-12 22:10:43 +03:00
Alexander Medvednikov ee6c0a0691 checker: split up checker.v: fn.v, if.v, interface.v, match.v 2021-12-11 10:48:07 +03:00