about summary refs log tree commit diff
path: root/tvix/eval/src
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src')
-rw-r--r--tvix/eval/src/compiler.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/tvix/eval/src/compiler.rs b/tvix/eval/src/compiler.rs
index ac630360d403..e2d194e8ddbb 100644
--- a/tvix/eval/src/compiler.rs
+++ b/tvix/eval/src/compiler.rs
@@ -676,8 +676,13 @@ impl Compiler {
             });
         }
 
-        for _ in node.inherits() {
-            todo!("inherit in let not yet implemented")
+        for inherit in node.inherits() {
+            match inherit.from() {
+                // Within a `let` binding, inheriting from the outer
+                // scope is practically a no-op.
+                None => continue,
+                Some(_) => todo!("let inherit from attrs"),
+            }
         }
 
         // Now we can compile each expression, leaving the values on