Merge worktree-agent: add struct literals, generics, print/log builtins
This commit is contained in:
@@ -307,6 +307,14 @@ impl<'g> Evaluator<'g> {
|
||||
Ok(EvalValue::Nil)
|
||||
}
|
||||
|
||||
Expr::StructLit { type_name: _, fields, .. } => {
|
||||
// Evaluate all fields but return Nil — struct construction in test
|
||||
// eval context is not supported yet (tests use activate, not literals)
|
||||
for (_, e) in fields {
|
||||
self.eval_expr(e)?;
|
||||
}
|
||||
Ok(EvalValue::Nil)
|
||||
}
|
||||
// New expression kinds — return Nil
|
||||
_ => {
|
||||
Ok(EvalValue::Nil)
|
||||
|
||||
Reference in New Issue
Block a user