From 0cee44838ccae33e2a70e88b805268b2531c552c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 28 Sep 2022 15:08:11 +0300 Subject: feat(tvix/eval): add error kind for unmergeable nested attributes Change-Id: Ic5e6d1bf2625c33938360affb0d1a7c922af11bf Reviewed-on: https://cl.tvl.fyi/c/depot/+/6799 Tested-by: BuildkiteCI Reviewed-by: sterni --- tvix/eval/src/compiler/bindings.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tvix/eval/src/compiler') diff --git a/tvix/eval/src/compiler/bindings.rs b/tvix/eval/src/compiler/bindings.rs index 5fa08210fd46..53344d067771 100644 --- a/tvix/eval/src/compiler/bindings.rs +++ b/tvix/eval/src/compiler/bindings.rs @@ -48,7 +48,10 @@ impl Binding { Some(ErrorKind::UnmergeableInherit { name: name.clone() }) } - Binding::Plain { .. } => todo!(), + Binding::Plain { expr } => match expr { + ast::Expr::AttrSet(_) => todo!(), + _ => Some(ErrorKind::UnmergeableValue), + }, } } } -- cgit 1.4.1