aboutsummaryrefslogtreecommitdiff
path: root/bin/tests/data/useless_parens.nix
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tests/data/useless_parens.nix')
-rw-r--r--bin/tests/data/useless_parens.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/tests/data/useless_parens.nix b/bin/tests/data/useless_parens.nix
new file mode 100644
index 0000000..cf26441
--- /dev/null
+++ b/bin/tests/data/useless_parens.nix
@@ -0,0 +1,16 @@
1let
2 # parens around primitives
3 a = {
4 b = ("hello");
5 c = (d);
6 e = ({ f = 2; });
7 };
8
9 # parens around let-value
10 g = (1 + 2);
11 h = ({ inherit i; });
12
13 # TODO: binary exprs, function args etc.
14in
15 # parens around let body
16 (null)