aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/noalias_param_coersion.zig
diff options
context:
space:
mode:
authorr00ster91 <r00ster91@proton.me>2023-07-04 10:34:31 -0400
committerVeikka Tuominen <git@vexu.eu>2023-09-19 15:15:05 +0300
commitee4ced96833470f9432e6a5dc5b31534457280c0 (patch)
tree8d35dc654895f029e23ce710367b839814ed5cd9 /test/cases/compile_errors/noalias_param_coersion.zig
parent3e79315d19c7dfe5f9b90185d8030209ef8dd829 (diff)
downloadzig-ee4ced96833470f9432e6a5dc5b31534457280c0.tar.gz
zig-ee4ced96833470f9432e6a5dc5b31534457280c0.zip
write function types consistently with a space before `fn` keyword
Currently, the compiler (like @typeName) writes it `fn(...) Type` but zig fmt writes it `fn (...) Type` (notice the space after `fn`). This inconsistency is now resolved and function types are consistently written the zig fmt way. Before this there were more `fn (...) Type` occurrences than `fn(...) Type` already.
Diffstat (limited to 'test/cases/compile_errors/noalias_param_coersion.zig')
-rw-r--r--test/cases/compile_errors/noalias_param_coersion.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cases/compile_errors/noalias_param_coersion.zig b/test/cases/compile_errors/noalias_param_coersion.zig
index e6dfae0370..d927a9dcc9 100644
--- a/test/cases/compile_errors/noalias_param_coersion.zig
+++ b/test/cases/compile_errors/noalias_param_coersion.zig
@@ -14,7 +14,7 @@ fn bar(noalias _: *i32, _: *i32) void {}
// backend=stage2
// target=native
//
-// :3:9: error: expected type 'fn(noalias *i32, noalias *i32) void', found 'fn(noalias *i32, *i32) void'
+// :3:9: error: expected type 'fn (noalias *i32, noalias *i32) void', found 'fn (noalias *i32, *i32) void'
// :3:9: note: regular parameter 1 cannot cast into a noalias parameter
-// :7:9: error: expected type 'fn(*i32, *i32) void', found 'fn(noalias *i32, noalias *i32) void'
+// :7:9: error: expected type 'fn (*i32, *i32) void', found 'fn (noalias *i32, noalias *i32) void'
// :7:9: note: noalias parameter 0 cannot cast into a regular parameter