1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

assert: Report why values aren't equal

This commit is contained in:
Robert Hensing 2024-07-05 16:43:48 +02:00
parent 509be0e77a
commit d63bd8295e
29 changed files with 532 additions and 5 deletions

View file

@ -0,0 +1,7 @@
# Note: functions in nested structures, e.g. attributes, may be optimized away by pointer identity optimization.
# This only compares a direct comparison and makes no claims about functions in nested structures.
assert
(x: x)
==
(x: x);
abort "unreachable"