summaryrefslogtreecommitdiffstats
path: root/tests/autoMkindex.tcl
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2001-05-03 22:38:20 (GMT)
committerdgp <dgp@users.sourceforge.net>2001-05-03 22:38:20 (GMT)
commit30b6ae94051b57f5a17ab9ca7a7c3ffd6615680e (patch)
tree3556e64731aaee88def2382ca03907296de5e342 /tests/autoMkindex.tcl
parentbe1d3ffdb010f8ac70bfb807fca3631897628951 (diff)
downloadtcl-30b6ae94051b57f5a17ab9ca7a7c3ffd6615680e.zip
tcl-30b6ae94051b57f5a17ab9ca7a7c3ffd6615680e.tar.gz
tcl-30b6ae94051b57f5a17ab9ca7a7c3ffd6615680e.tar.bz2
Fix for Bug 420186
Diffstat (limited to 'tests/autoMkindex.tcl')
-rw-r--r--tests/autoMkindex.tcl9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/autoMkindex.tcl b/tests/autoMkindex.tcl
index 2756358..8e9e74d 100644
--- a/tests/autoMkindex.tcl
+++ b/tests/autoMkindex.tcl
@@ -71,3 +71,12 @@ namespace eval ::buried {
{my proc} mycmd5 args {return "mycmd"}
}
{::buried::my proc} mycmd6 args {return "another"}
+
+# A correctly functioning [auto_import] won't choke when a child
+# namespace [namespace import]s from its parent.
+#
+namespace eval ::parent::child {
+ namespace import ::parent::*
+}
+proc ::parent::child::test {} {}
+