aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-fail-assert-equal-function-direct.nix
blob: 68e5e390823c008368690639a554661d874122d4 (about) (plain) (blame)
1
2
3
4
5
6
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"