mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
11 lines
245 B
Plaintext
11 lines
245 B
Plaintext
// #deprecation: no
|
|
fn void test2(int[<2>] x) {}
|
|
fn void main()
|
|
{
|
|
int[<2>] y = 1;
|
|
y[..] = 3;
|
|
y.xxy = 3; // #error: cannot use swizzling
|
|
y *= 2;
|
|
y = 3; // #error: explicit cast
|
|
test2(3); // #error: explicit cast
|
|
} |