Index: tests/varresolutiontest.xotcl =================================================================== diff -u -r3f0573cc75724179f416942b974373e5a62ec05e -r782b1f820f03b0f09c3e333a5e03f9ad2808fcac --- tests/varresolutiontest.xotcl (.../varresolutiontest.xotcl) (revision 3f0573cc75724179f416942b974373e5a62ec05e) +++ tests/varresolutiontest.xotcl (.../varresolutiontest.xotcl) (revision 782b1f820f03b0f09c3e333a5e03f9ad2808fcac) @@ -55,6 +55,15 @@ set [self]::X 4 set g 1 } +? {::nx::core::importvar o2 j} \ + "importvar cannot import variable 'j' into method scope; not called from a method frame" + +o method foo {} {::nx::core::importvar [self] :a} +? {o foo} "variable name \":a\" must not contain namespace separator or colon prefix" + +o method foo {} {::nx::core::importvar [self] ::a} +? {o foo} "variable name \"::a\" must not contain namespace separator or colon prefix" + set ::o::Y 5 ? {info vars ::x} ""