diff --git a/CompilerStack.cpp b/CompilerStack.cpp index a2a178317..554d06fd7 100644 --- a/CompilerStack.cpp +++ b/CompilerStack.cpp @@ -267,7 +267,7 @@ void CompilerStack::reset(bool _keepSources) { m_sources.clear(); if (m_addStandardSources) - addSources(StandardSources); + addSources(StandardSources, true); } m_globalContext.reset(); m_sourceOrder.clear(); diff --git a/CompilerStack.h b/CompilerStack.h index 6f90a846e..7d9198622 100644 --- a/CompilerStack.h +++ b/CompilerStack.h @@ -141,7 +141,7 @@ private: std::shared_ptr ast; std::string interface; bool isLibrary = false; - void reset() { scanner.reset(); ast.reset(); interface.clear(); isLibrary = false;} + void reset() { scanner.reset(); ast.reset(); interface.clear(); } }; struct Contract