Improved error messages on missing qualifier on enum value. #2260

This commit is contained in:
Christoffer Lerno
2025-07-01 17:08:12 +02:00
parent 21533ffee4
commit 89507bd335
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
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,
}