Files
c3c/test/test_suite/enumerations/const_enum.c3

12 lines
197 B
Plaintext

import std::io;
enum MyEnum : const 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
}