mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
31 lines
368 B
Plaintext
31 lines
368 B
Plaintext
module values {Type};
|
|
|
|
struct Values
|
|
{
|
|
Type[] values;
|
|
int count;
|
|
}
|
|
|
|
fn void test()
|
|
{
|
|
|
|
}
|
|
module main;
|
|
|
|
import values;
|
|
import std::collections::list;
|
|
|
|
fn void test1()
|
|
{
|
|
int x = values::test{}(); // #error: At least one generic parameter
|
|
}
|
|
|
|
fn void test2()
|
|
{
|
|
List{Values{ }} v1s; // #error: At least one generic parameter
|
|
}
|
|
|
|
fn void main()
|
|
{
|
|
List{Values{int}} v2s;
|
|
} |