Shift error message now says "fixed-width integer type" instead of just "integer type" (#5028)

* error message of ir_analyze_bit_shift now more accurate/specific

* fixed compile error test to match bit shift error message
This commit is contained in:
foobles
2020-04-14 15:19:45 -05:00
committed by GitHub
parent 5974a88794
commit 022a71ca7d
2 changed files with 2 additions and 2 deletions

View File

@@ -5925,7 +5925,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
\\ return 0x11 << x;
\\}
, &[_][]const u8{
"tmp.zig:2:17: error: LHS of shift must be an integer type, or RHS must be compile-time known",
"tmp.zig:2:17: error: LHS of shift must be a fixed-width integer type, or RHS must be compile-time known",
});
cases.add("shifting RHS is log2 of LHS int bit width",