Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I8640148e8e7597924f9c776750c856266a6a6964
6 lines
89 B
Nix
6 lines
89 B
Nix
# Test 'or' in attrset context
|
|
let
|
|
attrs = { a = 1; };
|
|
in {
|
|
test = attrs.a or 999;
|
|
}
|