zig/test/standalone/simple
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
..
cat Move "simple" standalone test cases to a new directory 2024-04-07 16:05:54 -07:00
guess_number Move "simple" standalone test cases to a new directory 2024-04-07 16:05:54 -07:00
hello_world Move "simple" standalone test cases to a new directory 2024-04-07 16:05:54 -07:00
issue_9402 Move "simple" standalone test cases to a new directory 2024-04-07 16:05:54 -07:00
issue_12471 Move "simple" standalone test cases to a new directory 2024-04-07 16:05:54 -07:00
main_return_error Move "simple" standalone test cases to a new directory 2024-04-07 16:05:54 -07:00
noreturn_call Move "simple" standalone test cases to a new directory 2024-04-07 16:05:54 -07:00
brace_expansion.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
build.zig test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
issue_7030.zig compiler: remove anonymous struct types, unify all tuples 2024-10-31 20:42:53 +00:00
std_enums_big_enums.zig Sema: rewrite semantic analysis of function calls 2025-01-09 06:46:47 +00:00