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

16 lines
194 B
Plaintext

import std::io;
enum Foo
{
BAR
}
fn void test()
{
int x = BAR; // #error: type cannot be inferred correctly,
}
fn void main()
{
io::printn(BAR); // #error: type cannot be inferred,
}