aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2022-01-25 10:49:27 +0100
committerregnat <rg@regnat.ovh>2022-01-25 10:49:27 +0100
commitf113ea6c739a9f34fc0c79b1857279b9c0803bf1 (patch)
treeaf5d18c697f28aaf74e223ebb05cbb88e48d643b /tests
parent0a70b37b5694c769fb855c1afe7642407d1db64f (diff)
Fix parsing of variable names that are a suffix of '__curPos'
Follow-up from #5969 Fix #5982
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/eval-okay-regression-20220125.exp1
-rw-r--r--tests/lang/eval-okay-regression-20220125.nix2
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-regression-20220125.exp b/tests/lang/eval-okay-regression-20220125.exp
new file mode 100644
index 000000000..00750edc0
--- /dev/null
+++ b/tests/lang/eval-okay-regression-20220125.exp
@@ -0,0 +1 @@
+3
diff --git a/tests/lang/eval-okay-regression-20220125.nix b/tests/lang/eval-okay-regression-20220125.nix
new file mode 100644
index 000000000..485502373
--- /dev/null
+++ b/tests/lang/eval-okay-regression-20220125.nix
@@ -0,0 +1,2 @@
+((__curPosFoo: __curPosFoo) 1) + ((__curPosBar: __curPosBar) 2)
+