From c9613222242666e3031f6bc920ec8e644591478f Mon Sep 17 00:00:00 2001 From: PeterWAWood Date: Thu, 1 Nov 2012 18:56:52 +0800 Subject: [PATCH] TESTS: added test to namespace-test.r rre Issue #282 --- red-system/tests/source/compiler/namespace-test.r | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/red-system/tests/source/compiler/namespace-test.r b/red-system/tests/source/compiler/namespace-test.r index ee46052bbb..0a3891d080 100644 --- a/red-system/tests/source/compiler/namespace-test.r +++ b/red-system/tests/source/compiler/namespace-test.r @@ -93,6 +93,13 @@ change-dir %../ } --assert-msg? "*** Compilation Error: context has to be declared at root level" + --test-- "nmicd2 - name clash with previously delared word - issue #282" + --compile-this { + nmicd2-c: "hello" + nmicd2-c: context [b: 2] + } + --assert-msg? "*** Compilation Error: context name is already taken" + ===end-group=== ~~~end-file~~~