summaryrefslogtreecommitdiffstats
path: root/tests/dict.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-09-19 14:48:02 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-09-19 14:48:02 (GMT)
commit08f3edbacbd40f9f76fb9e002b49516a5ffc3c62 (patch)
treef6fcb3339905381c35a4192d4c8e95ab2bce8ed3 /tests/dict.test
parent071c731c5e45080a89c03c7ae74ec6acf4df59c2 (diff)
downloadtcl-08f3edbacbd40f9f76fb9e002b49516a5ffc3c62.zip
tcl-08f3edbacbd40f9f76fb9e002b49516a5ffc3c62.tar.gz
tcl-08f3edbacbd40f9f76fb9e002b49516a5ffc3c62.tar.bz2
Line numbers wrong in compiled [dict get].
Diffstat (limited to 'tests/dict.test')
-rw-r--r--tests/dict.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/dict.test b/tests/dict.test
index fec000d..149599b 100644
--- a/tests/dict.test
+++ b/tests/dict.test
@@ -1259,6 +1259,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 {}