Enum inference, like Foo x = $eval("A"), now works correctly for $eval.

This commit is contained in:
Christoffer Lerno
2025-08-30 15:24:11 +02:00
parent b757f1447b
commit fafcf3d0a9
3 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
module test;
import std;
enum Foo
{
A, B
}
struct Test
{
Foo a;
}
fn void main()
{
var $member = Test.membersof[0];
Test x;
x.a = $eval("A");
io::printn(x);
}