zig/test/behavior
mlugg e9bd2d45d4
Sema: rewrite semantic analysis of function calls
This rewrite improves some error messages, hugely simplifies the logic,
and fixes several bugs. One of these bugs is technically a new rule
which Andrew and I agreed on: if a parameter has a comptime-only type
but is not declared `comptime`, then the corresponding call argument
should not be *evaluated* at comptime; only resolved. Implementing this
required changing how function types work a little, which in turn
required allowing a new kind of function coercion for some generic use
cases: function coercions are now allowed to implicitly *remove*
`comptime` annotations from parameters with comptime-only types. This is
okay because removing the annotation affects only the call site.

Resolves: #22262
2025-01-09 06:46:47 +00:00
..
2024-06-13 02:19:40 -07:00
2024-06-16 11:53:33 +02:00
2024-06-13 02:24:39 -07:00
2024-05-11 02:17:24 -07:00
2024-06-13 02:20:47 -07:00
2024-07-26 04:19:58 -07:00
2024-06-13 02:20:47 -07:00
2024-07-26 04:19:55 -07:00
2024-06-13 02:20:47 -07:00
2024-06-13 02:24:39 -07:00
2024-10-13 01:58:11 +02:00
2024-06-13 02:24:39 -07:00
2024-06-13 02:22:33 -07:00
2024-06-10 20:32:49 +02:00
2024-07-14 23:02:35 -07:00
2024-10-13 01:58:11 +02:00
2024-12-29 13:37:39 -05:00
2024-06-13 02:24:39 -07:00
2024-06-13 02:20:47 -07:00
2024-06-13 02:22:33 -07:00
2024-06-13 02:24:39 -07:00