mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
- Passing different types to arg 1 and 2 for $$matrix_transpose would trigger an assert. - Zero init of optional compile time variable would crash the compiler. - Using multiple declaration for generics in generic module would fail. - Defining an extern const without a type would crash rather than print an error. - Typedef followed by brace would trigger an assert. - Union with too big member would trigger an assert.
11 lines
216 B
Plaintext
11 lines
216 B
Plaintext
module elastic_array <Type, MAX_SIZE>;
|
|
int a, b, c;
|
|
module bar;
|
|
import elastic_array;
|
|
fn int main()
|
|
{
|
|
int g = elastic_array::a{int, 2};
|
|
int g2 = elastic_array::b{int, 2};
|
|
elastic_array::b{int, 2} = 3;
|
|
return 0;
|
|
} |