- Adding the incorrect sized vector to a pointer vector would cause a crash.

This commit is contained in:
Christoffer Lerno
2026-02-16 00:39:14 +01:00
parent a7309b217e
commit 990e9685d2
8 changed files with 18 additions and 28 deletions

View File

@@ -0,0 +1,8 @@
int a;
fn void main()
{
void*[<2>] x = { &a, &a };
int[<1>] y = { 1 };
x + y; // #error: It is not possible to cast 'int[<1>]' to 'isz[<2>]' (long[<2>])
}