mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
19 lines
332 B
Plaintext
19 lines
332 B
Plaintext
|
|
fn void test1()
|
|
{
|
|
var $d = { {1}, {2, 3} };
|
|
var $e = (int[*][*])$d; // #error: contains elements that have different lengths
|
|
}
|
|
|
|
fn void test2()
|
|
{
|
|
var $d = { {1}, {3}, {2} };
|
|
var $e = (int[*][*])$d;
|
|
}
|
|
|
|
fn void test3()
|
|
{
|
|
var $d = { {1}, {} };
|
|
var $e = (int[*][*])$d; // #error: This untyped list contained an element of type
|
|
}
|