9 lines
156 B
Nix
9 lines
156 B
Nix
|
let
|
||
|
x = 123;
|
||
|
as = { a = "foo"; b = "bar"; x="234"; };
|
||
|
|
||
|
in with as; {
|
||
|
res = x; # what value is res bound to?
|
||
|
}
|
||
|
|
||
|
# naiji: 'let' has priority over 'with'
|