fix: remove misleading error note for failed array coercions

This commit is contained in:
WillLillis
2024-07-20 02:31:19 -04:00
committed by Andrew Kelley
parent 9b292c0949
commit 18d412ab2f
2 changed files with 22 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
export fn a() void {
const x = [_]u16{ 1, 2, 3 };
const y: [3]i32 = x;
_ = y;
}
// error
// backend=stage2
// target=native
//
// 3:23: error: expected type '[3]i32', found '[3]u16'