diff options
Diffstat (limited to 'test/testdata/eval-fail-foldlStrict-strict-op-application.nix')
-rw-r--r-- | test/testdata/eval-fail-foldlStrict-strict-op-application.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/testdata/eval-fail-foldlStrict-strict-op-application.nix b/test/testdata/eval-fail-foldlStrict-strict-op-application.nix new file mode 100644 index 0000000..1620cc7 --- /dev/null +++ b/test/testdata/eval-fail-foldlStrict-strict-op-application.nix | |||
@@ -0,0 +1,5 @@ | |||
1 | # Tests that the result of applying op is forced even if the value is never used | ||
2 | builtins.foldl' | ||
3 | (_: f: f null) | ||
4 | null | ||
5 | [ (_: throw "Not the final value, but is still forced!") (_: 23) ] | ||