summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tclCompCmds.c2
-rw-r--r--tests/dict.test6
2 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c
index 8f72367..45e856f 100644
--- a/generic/tclCompCmds.c
+++ b/generic/tclCompCmds.c
@@ -1424,7 +1424,7 @@ CompileDictEachCmd(
* this point.
*/
- CompileWord(envPtr, dictTokenPtr, interp, 3);
+ CompileWord(envPtr, dictTokenPtr, interp, 2);
/*
* Now we catch errors from here on so that we can finalize the search
diff --git a/tests/dict.test b/tests/dict.test
index 3d86668..f8d62f1 100644
--- a/tests/dict.test
+++ b/tests/dict.test
@@ -1887,6 +1887,12 @@ test dict-23.6 {CompileWord OBOE} {
} [return [incr n -[linenumber]]]
}} [linenumber]
} 1
+test dict-23.7 {CompileWord OBOE} {
+ apply {n {
+ dict for {a b} [return [incr n -[linenumber]]] {*}{
+ } {}
+ }} [linenumber]
+} 2
rename linenumber {}
test dict-24.22 {dict map results (non-compiled)} {