diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-11-26 19:50:52 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-11-26 19:50:52 -0500 |
| commit | 8ecd6c4d8c021f7778b4959bdf75204dfd2d1946 (patch) | |
| tree | 09f82cbd9d7698657537ac48d32dc4f362377b92 /test/compile_errors.zig | |
| parent | a6ef83cccfd1c586346c374d0f011e29d465da0e (diff) | |
| download | zig-8ecd6c4d8c021f7778b4959bdf75204dfd2d1946.tar.gz zig-8ecd6c4d8c021f7778b4959bdf75204dfd2d1946.zip | |
add compiler note for bad int coercion
closes #3724
Diffstat (limited to 'test/compile_errors.zig')
| -rw-r--r-- | test/compile_errors.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig index c1e2d579a4..f2600d2d7a 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -1648,6 +1648,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { "tmp.zig:3:31: error: integer value 300 cannot be coerced to type 'u8'", "tmp.zig:7:22: error: integer value 300 cannot be coerced to type 'u8'", "tmp.zig:11:20: error: expected type 'u8', found 'u16'", + "tmp.zig:11:20: note: unsigned 8-bit int cannot represent all possible unsigned 16-bit values", ); cases.add( |
