src/compiler/NameBinding.cpp
changeset 257 9db4cc815ebc
parent 256 3c184218462d
child 258 241d082d6d89
     1.1 --- a/src/compiler/NameBinding.cpp	Sun Jan 06 13:52:21 2013 -0800
     1.2 +++ b/src/compiler/NameBinding.cpp	Sun Jan 06 13:56:56 2013 -0800
     1.3 @@ -859,7 +859,7 @@
     1.4              // Imports automatically go into the importScope. For now, we
     1.5              // error if there are any duplicate symbols entered into the
     1.6              // importScope.
     1.7 -            if (Symbol *sym = unit_->importScope()->localLookup(path->name)) {
     1.8 +            if (unit_->importScope()->localLookup(path->name)) {
     1.9                  cc_.reportError(node->pos(), Message_DuplicateImport, path->name->chars());
    1.10                  return;
    1.11              }