mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
15 lines
313 B
Plaintext
15 lines
313 B
Plaintext
module get_environ;
|
|
import std;
|
|
|
|
enum Foo : (String x, int val)
|
|
{
|
|
ABC { "Hello", 3 },
|
|
DEF { "World", -100 },
|
|
}
|
|
|
|
fn int main()
|
|
{
|
|
Foo.membersof[0].set(Foo.ABC, "Hello"); // #error: Enum associated values cannot be set
|
|
Foo.membersof[0].offsetof; // #error: No member or property 'offsetof' was found
|
|
return 0;
|
|
} |