summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-09-19 14:49:28 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-09-19 14:49:28 (GMT)
commitb6c1b41e104b590889abc40a5b8cab1436d2e52c (patch)
treeb9be15dbb81dfa9b9fa1702e1cfbbc9131e8c50e /tests
parentbd33f7aed8365be64ec2ffde4950fac52695a0e6 (diff)
parent08f3edbacbd40f9f76fb9e002b49516a5ffc3c62 (diff)
downloadtcl-b6c1b41e104b590889abc40a5b8cab1436d2e52c.zip
tcl-b6c1b41e104b590889abc40a5b8cab1436d2e52c.tar.gz
tcl-b6c1b41e104b590889abc40a5b8cab1436d2e52c.tar.bz2
Line numbers wrong in compiled [dict get].
Diffstat (limited to 'tests')
-rw-r--r--tests/dict.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/dict.test b/tests/dict.test
index 1b1fc31..3d86668 100644
--- a/tests/dict.test
+++ b/tests/dict.test
@@ -1881,6 +1881,12 @@ test dict-23.5 {CompileWord OBOE} {
apply {{} {tcl::dict::incr foo \
[format bar]}}
} {bar 1}
+test dict-23.6 {CompileWord OBOE} {
+ apply {n {
+ dict get {a b} {*}{
+ } [return [incr n -[linenumber]]]
+ }} [linenumber]
+} 1
rename linenumber {}
test dict-24.22 {dict map results (non-compiled)} {