mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
12 lines
197 B
Plaintext
12 lines
197 B
Plaintext
import std::io;
|
|
|
|
const enum 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
|
|
} |