Properly use AST node name also for secondary location.

This commit is contained in:
chriseth
2021-06-10 14:40:10 +02:00
parent a4f2e591fe
commit cf00faca33
2 changed files with 12 additions and 21 deletions
+1 -8
View File
@@ -166,19 +166,12 @@ private:
std::string const& _message1,
std::string const& _message2
);
void overrideError(
Declaration const& _overriding,
Declaration const& _super,
langutil::ErrorId _error,
std::string const& _message,
std::string const& _secondaryMsg = "Overridden function is here:"
);
void overrideError(
OverrideProxy const& _overriding,
OverrideProxy const& _super,
langutil::ErrorId _error,
std::string const& _message,
std::string const& _secondaryMsg = "Overridden function is here:"
std::optional<std::string> const& _secondaryMsg = {}
);
/// Checks for functions in different base contracts which conflict with each
/// other and thus need to be overridden explicitly.