summaryrefslogtreecommitdiffstats
path: root/tests/namespace.test
diff options
context:
space:
mode:
authormsofer <msofer@noemail.net>2001-05-15 14:19:12 (GMT)
committermsofer <msofer@noemail.net>2001-05-15 14:19:12 (GMT)
commit418f61b6aa221e38350665376960c9bfdeaa56a8 (patch)
tree70a9f069004245b780b0f5791f52b78bffe4d3b1 /tests/namespace.test
parent48600321d0943d4850685cdba269b068b8c53932 (diff)
downloadtcl-418f61b6aa221e38350665376960c9bfdeaa56a8.zip
tcl-418f61b6aa221e38350665376960c9bfdeaa56a8.tar.gz
tcl-418f61b6aa221e38350665376960c9bfdeaa56a8.tar.bz2
Patch from [Bug: 231259]
FossilOrigin-Name: 55d8fa19bf99b4f41e86e5aabcf7965cb61b8792
Diffstat (limited to 'tests/namespace.test')
-rw-r--r--tests/namespace.test16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index 75f8fc5..e6b881c 100644
--- a/tests/namespace.test
+++ b/tests/namespace.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: namespace.test,v 1.15 2001/05/03 21:14:57 msofer Exp $
+# RCS: @(#) $Id: namespace.test,v 1.16 2001/05/15 14:19:14 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -1136,6 +1136,20 @@ test namespace-40.1 {Ignoring namespace proc "unknown"} {
set l
} {global global}
+test namespace-41.1 {Shadowing byte-compiled commands} {
+ namespace eval ns {
+ proc test {} {
+ set ::g 0
+ }
+ lappend ::res [test]
+ proc set {a b} {
+ ::set a [incr b]
+ }
+ lappend ::res [test]
+ }
+ set res
+} {0 1}
+
# cleanup
catch {rename cmd1 {}}
catch {unset l}