fix(tvix/eval): allow use of ? operator on non-set types
Nix allows this, but always returns false. Tvix needs to do the same. Change-Id: Ic9eec90834a0d0969eea5316d5c25032d3691d94 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6209 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
43658a5b90
commit
76846fe220
4 changed files with 14 additions and 4 deletions
|
|
@ -0,0 +1 @@
|
|||
[ false false false false ]
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Nix allows using the ? operator on non-set types, in which case it
|
||||
# should always return false.
|
||||
[ (123 ? key) ("foo" ? key) (null ? key) ([ "key" ] ? key) ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue