diff --git a/src/assignment.rs b/src/assignment.rs index 2629c53e16..ce1cb93052 100644 --- a/src/assignment.rs +++ b/src/assignment.rs @@ -5,6 +5,10 @@ pub(crate) type Assignment<'src> = Binding<'src, Expression<'src>>; impl Display for Assignment<'_> { fn fmt(&self, f: &mut Formatter) -> fmt::Result { + if self.eager { + write!(f, "eager ")?; + } + if self.export { write!(f, "export ")?; } diff --git a/tests/lazy.rs b/tests/lazy.rs index 2d0e177dc6..363d5c4b23 100644 --- a/tests/lazy.rs +++ b/tests/lazy.rs @@ -336,3 +336,19 @@ fn eager_assignments_are_evaluated() { ) .failure(); } + +#[test] +fn eager_assignment_dump() { + assert_dump( + " + set lazy + + eager foo := 'bar' + ", + " + set lazy + + eager foo := 'bar' + ", + ); +}