Without this change it was possible to cause situations (see the new test) in which a `with`-namespace was forced prematurely. Change-Id: I879ea7763b43edc693feace2c73c890d426fafd3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7031 Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI Reviewed-by: Adam Joseph <adam@westernsemico.com>
6 lines
147 B
Nix
6 lines
147 B
Nix
# The 'namespace' of a with should only be evaluated if an identifier
|
|
# from it is actually accessed.
|
|
|
|
with (abort "should not be evaluated");
|
|
|
|
42
|