mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
* Fix array initializer analysis: improved semantic checking for arrays with inferred or fixed length, * Update phrasing --------- Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
8 lines
144 B
Plaintext
8 lines
144 B
Plaintext
import std;
|
|
macro void test(int[2][6] a)
|
|
{
|
|
}
|
|
fn void main()
|
|
{
|
|
test({ { 1, 2 } }); // #error: Too few (1) elements in initializer, expected 6
|
|
} |