From aad713b6fe375f19dca6cbd35b17debd7b4aad38 Mon Sep 17 00:00:00 2001 From: NaiJi Date: Mon, 18 Apr 2022 06:43:41 +0000 Subject: [PATCH] Add '23.nix' --- 23.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 23.nix diff --git a/23.nix b/23.nix new file mode 100644 index 0000000..b63fc21 --- /dev/null +++ b/23.nix @@ -0,0 +1,9 @@ +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' \ No newline at end of file