mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
16 lines
194 B
Plaintext
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,
|
|
} |