ScopeVisitor and Error