diff options
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r-- | cpp/src/Slice/Parser.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp index 2eee9ccddf1..312d8ff62c8 100644 --- a/cpp/src/Slice/Parser.cpp +++ b/cpp/src/Slice/Parser.cpp @@ -382,17 +382,17 @@ Slice::Container::createClassDef(const string& name, bool intf, const ClassList& } else { + if(_unit->ignRedefs()) + { + def->updateIncludeLevel(); + return def; + } + string msg = "redefinition of "; msg += intf ? "interface" : "class"; msg += " `" + name + "'"; _unit->error(msg); } - - if(_unit->ignRedefs()) - { - def->updateIncludeLevel(); - return def; - } } else if(!_unit->caseSensitive() && differsOnlyInCase) { |