about summary refs log blame commit diff
path: root/tests/lang/eval-okay-types.nix
blob: c3fe370ef7709a64149805571385530ed0f4e90d (plain) (tree)






















                            
with builtins;

[ (isNull null)
  (isNull (x: x))
  (isFunction (x: x))
  (isFunction "fnord")
  (isString ("foo" + "bar"))
  (isString [ "x" ])
  (isInt (1 + 2))
  (isInt { x = 123; })
  (isBool (true && false))
  (isBool null)
  (typeOf (3 * 4))
  (typeOf true)
  (typeOf "xyzzy")
  (typeOf null)
  (typeOf { x = 456; })
  (typeOf [ 1 2 3 ])
  (typeOf (x: x))
  (typeOf ((x: y: x) 1))
  (typeOf map)
  (typeOf (map (x: x)))
]