mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
20 lines
167 B
Plaintext
20 lines
167 B
Plaintext
module test;
|
|
import std;
|
|
|
|
enum Foo
|
|
{
|
|
A, B
|
|
}
|
|
|
|
struct Test
|
|
{
|
|
Foo a;
|
|
}
|
|
fn void main()
|
|
{
|
|
|
|
var $member = Test.membersof[0];
|
|
Test x;
|
|
x.a = $eval("A");
|
|
io::printn(x);
|
|
} |