diff --git a/extra/symbols/symbols-tests.factor b/extra/symbols/symbols-tests.factor index 0eacbbfd38..1ae4a38cb7 100755 --- a/extra/symbols/symbols-tests.factor +++ b/extra/symbols/symbols-tests.factor @@ -1,4 +1,4 @@ -USING: kernel symbols tools.test parser generic words ; +USING: kernel symbols tools.test parser generic words accessors ; IN: symbols.tests [ ] [ SYMBOLS: a b c ; ] unit-test @@ -13,3 +13,8 @@ DEFER: blah [ f ] [ \ blah generic? ] unit-test [ t ] [ \ blah symbol? ] unit-test + +[ "IN: symbols.tests USE: symbols SINGLETONS: blah blah blah ;" eval ] +[ error>> error>> def>> \ blah eq? ] +must-fail-with + diff --git a/extra/symbols/symbols.factor b/extra/symbols/symbols.factor index 50733a620e..20cf16e640 100755 --- a/extra/symbols/symbols.factor +++ b/extra/symbols/symbols.factor @@ -10,5 +10,5 @@ IN: symbols : SINGLETONS: ";" parse-tokens - [ create-class-in dup save-location define-singleton-class ] each ; + [ create-class-in define-singleton-class ] each ; parsing