about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-closure-pointer-compare.nix
blob: 639191be5d66bd5743636463d1e0411dd6d593ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# For an explanation of this behavior see //tvix/docs/value-pointer-equality.md
let
  g = x:
    owo: "th" + x;
in
[
  (
    { q = g "ia"; } == { q = g ("i" + "a"); }
  )

  (
    [ (g "ia") ] == [ (g ("i" + "a")) ]
  )
]