Files
c3c/test/test_suite/distinct/distinct_slicing.c3
Christoffer Lerno 99cfaa1583 Refactor protocols.
2023-10-06 22:31:41 +02:00

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[]'
}