Show unimplemented function if trying to instantiate an abstract class

This commit is contained in:
Alex Beregszaszi committed 2017-08-04 14:03:37 +01:00
1 parent c835bcec62
commit 494dea262e
4 files changed
+25 -1

No files matched your search

+10
View File
@@ -151,6 +151,16 @@ void ErrorReporter::syntaxError(SourceLocation const& _location, string const& _
);
}
void ErrorReporter::typeError(SourceLocation const& _location, SecondarySourceLocation const& _secondaryLocation, string const& _description)
{
error(
Error::Type::TypeError,
_location,
_secondaryLocation,
_description
);
}
void ErrorReporter::typeError(SourceLocation const& _location, string const& _description)
{
error(