mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
12 lines
195 B
Plaintext
12 lines
195 B
Plaintext
import std::io;
|
|
|
|
constdef MyEnum : inline CInt
|
|
{
|
|
FOO = 1,
|
|
BAR = 5,
|
|
BAZ = 9,
|
|
}
|
|
fn void main()
|
|
{
|
|
io::printn(MyEnum.lookup(2)); // #error: No method or inner struct/union 'MyEnum.lookup' found
|
|
} |