Files
c3c/test/test_suite/vector/vector_conversion_scalar.c3
2025-03-03 00:32:20 +01:00

11 lines
244 B
Plaintext

// #deprecation: no
fn void test2(int[<2>] x) {}
fn void main()
{
int[<2>] y = 1;
y[..] = 3;
y.xy = 3; // #error: cannot use swizzling
y *= 2;
y = 3; // #error: explicit cast
test2(3); // #error: explicit cast
}