Skip to content

Commit 632767b

Browse files
committed
add test for no formals case
1 parent 23d9d8b commit 632767b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error:
2+
… from call site
3+
at /pwd/lang/eval-fail-empty-formals.nix:1:1:
4+
1| (foo@{}: 1) { a = 3; }
5+
| ^
6+
2|
7+
8+
error: function 'anonymous lambda' called with unexpected argument 'a'
9+
at /pwd/lang/eval-fail-empty-formals.nix:1:2:
10+
1| (foo@{}: 1) { a = 3; }
11+
| ^
12+
2|
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(foo@{ }: 1) { a = 3; }

0 commit comments

Comments
 (0)