diff options
Diffstat (limited to 'tvix/eval')
-rw-r--r-- | tvix/eval/src/compiler.rs | 9 |
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 |