mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Crash when trying to convert a struct slice to a vector #2039.
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user