about summary refs log blame commit diff
path: root/tvix/eval/src/tests/tvix_tests/notyetpassing/eval-okay-builtins-set-pointer-equality.nix
blob: 678d6139ee035c64df485169089f759ab64e11bc (plain) (tree)



















                                                                    
let
  alias = builtins;
in

[
  (builtins == builtins)
  (alias == builtins)
  (builtins == builtins.builtins)
  (builtins.builtins == builtins.builtins)
  (builtins.builtins == builtins.builtins.builtins)
  (alias == alias)
  (alias == builtins.builtins)
  ([ builtins ] == [ builtins ])

  # Surprisingly this only works with the set
  ([ builtins.add ] == [ builtins.add ])
  ({ inherit (builtins) import; } == { inherit (builtins) import; })
  # But this does
  (let x = { inherit (builtins) add; }; in x == x)
]