Files
c3c/test/test_suite/slices/array_to_const_err.c3
Christoffer Lerno 25bccf4883 New faults and syntax (#2034)
- Remove `[?]` syntax.
- Change `int!` to `int?` syntax.
- New `fault` declarations.
- Enum associated values can reference the calling enum.
2025-03-10 00:11:35 +01:00

9 lines
135 B
Plaintext

module test;
import std;
fn void main()
{
char[*] z = { 1, 2 };
char[] y = z; // #error: Conversions from arrays or vectors
}