mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
11 lines
179 B
C
11 lines
179 B
C
distinct Foo = double[];
|
|
|
|
fn void main()
|
|
{
|
|
Foo x = { 1.0, 4.5, 7.123 };
|
|
Foo y = x;
|
|
Foo z = x[0:2];
|
|
Foo w = x[1..2];
|
|
double[] yekf = x[1..1]; // #error: 'Foo' to 'double[]'
|
|
}
|