Add ErrorType::NestedFunction
This commit is contained in:
parent
b00f3c222d
commit
d659fb9779
@ -24,6 +24,7 @@ string UserError::get_message(void) const {
|
||||
case ErrorType::TypeNotCastable: return "Can't find an explicit cast to "+get<string>(this->data)+"'";
|
||||
case ErrorType::TypesNotComparable: return "Types not comparable";
|
||||
case ErrorType::ExpectedIntegralType: return "Expression must have integral type";
|
||||
case ErrorType::NestedFunction: return "Function definition is not allowed here";
|
||||
case ErrorType::ExpectedArithmeticType: return "Expression must have arithmetic type";
|
||||
case ErrorType::UnknownIdentifier: return "Unknown identifier '"+get<string>(this->data)+"'";
|
||||
case ErrorType::AlreadyDeclaredIdentifier: return "Already declared identifier '"+get<string>(this->data)+"'";
|
||||
|
@ -33,6 +33,7 @@ enum class ErrorType {
|
||||
TypesNotComparable,
|
||||
ExpectedIntegralType,
|
||||
ExpectedArithmeticType,
|
||||
NestedFunction,
|
||||
|
||||
// Runtime
|
||||
UnknownIdentifier,
|
||||
|
Loading…
Reference in New Issue
Block a user