Const enum methods are not being recognized. #2445

This commit is contained in:
Christoffer Lerno
2025-08-31 23:56:48 +02:00
parent d291a40f69
commit a751177a3e
3 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
module test;
enum Enum : const int
{
E0, E1
}
fn void Enum.foo(self) {}
fn int main()
{
Enum e = E0;
e.foo();
return 0;
}