- Crash when doing a type property lookup for const inline enums in some cases #2717.

This commit is contained in:
Christoffer Lerno
2026-01-06 15:28:18 +01:00
parent 702f836b40
commit 9ad98beda7
3 changed files with 14 additions and 1 deletions

View File

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