Permalink
Browse files

Instance variables can no longer be just "@".

  • Loading branch information...
razielgn committed Oct 14, 2013
1 parent 10ca7ac commit db4d0355a5ba4b46a034ad3fe741cb5a1060141c
Showing with 2 additions and 2 deletions.
  1. +2 −2 vm/symbol_table.cpp
View
@@ -32,8 +32,8 @@ namespace rubinius {
return SymbolTable::CVar;
}
- // An instance variable can't start with a digit
- if(size > 1 && ISDIGIT(str[1])) {
+ // An instance variable can't start with a digit and can't be just @.
+ if((size == 1) || (size > 1 && ISDIGIT(str[1]))) {
return SymbolTable::Normal;
}

0 comments on commit db4d035

Please sign in to comment.