aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/break_void_result_location.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-06-25 00:40:03 -0400
committerAndrew Kelley <andrew@ziglang.org>2023-06-25 12:00:48 -0700
commitb9c4857ed64fb18fa8cbc69112fd4fb4f8a5ac68 (patch)
tree48f6dde6a95bf44cadca07492f92fad5aca2ec85 /test/cases/compile_errors/break_void_result_location.zig
parent17e12960b5c12dd1dfb68940e70e9541dda856a2 (diff)
downloadzig-b9c4857ed64fb18fa8cbc69112fd4fb4f8a5ac68.tar.gz
zig-b9c4857ed64fb18fa8cbc69112fd4fb4f8a5ac68.zip
AstGen: add source location to certain const initializers
Before: assign_local_bad_coercion.zig:5:1: error: expected type 'u32', found 'u64' export fn constEntry() u32 { ^~~~~~ assign_local_bad_coercion.zig:11:19: error: expected type 'u32', found 'u64' var x: u32 = g(); ~^~ After: assign_local_bad_coercion.zig:6:21: error: expected type 'u32', found 'u64' const x: u32 = g(); ~^~ assign_local_bad_coercion.zig:11:19: error: expected type 'u32', found 'u64' var x: u32 = g(); ~^~
Diffstat (limited to 'test/cases/compile_errors/break_void_result_location.zig')
-rw-r--r--test/cases/compile_errors/break_void_result_location.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cases/compile_errors/break_void_result_location.zig b/test/cases/compile_errors/break_void_result_location.zig
index 696ea39667..bd15aa6a77 100644
--- a/test/cases/compile_errors/break_void_result_location.zig
+++ b/test/cases/compile_errors/break_void_result_location.zig
@@ -29,4 +29,4 @@ export fn f4() void {
// :2:22: error: expected type 'usize', found 'void'
// :7:9: error: expected type 'usize', found 'void'
// :14:9: error: expected type 'usize', found 'void'
-// :18:1: error: expected type 'usize', found 'void'
+// :19:27: error: expected type 'usize', found 'void'