about summary refs log blame commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-closure-pointer-compare.nix
blob: 639191be5d66bd5743636463d1e0411dd6d593ba (plain) (tree)
1
2
3
4
5
6
7
8






                                                                               
                                             


   
                                       

   
# 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")) ]
  )
]