Crash when trying to convert a struct slice to a vector #2039.

This commit is contained in:
Christoffer Lerno
2025-03-11 21:18:19 +01:00
parent 8c23c5028d
commit f5d02cd0d2
3 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
// Repro issue #2039
module foo;
struct Foo { void* x; }
fn void main()
{
Foo* foo;
float[<2>] a = foo[0..1]; // #error: It is not possible to cast
}