Files
zig/test/cases/compile_errors
Justus Klausecker 6d0b887972 Sema: disallow pointer cast from pointer to opaque type to slice
Fixes a regression where this conversion crashes. When the conversion was
still possible it would produce a slice with a length of zero, which doesn't
really make a lot of sense either. There's no way to determine the length
of the destination slice from a pointer to an opaque type, so it's a compile
error now. Users should just cast to a many-item pointer and slice to the
desired length manually instead.
2026-05-07 06:25:43 +02:00
..
2025-02-03 09:14:37 +00:00
2025-01-29 06:35:22 +00:00
2025-01-29 06:35:22 +00:00
2025-11-22 22:42:38 +00:00
2026-03-10 11:28:36 +00:00
2026-03-10 11:28:36 +00:00