Make a few more things classes.

This commit is contained in:
2020-09-17 18:30:41 -07:00
parent a5597aeae0
commit dfe47548cf
7 changed files with 54 additions and 49 deletions

View File

@@ -65,8 +65,8 @@ void definition_data::insert_constructors() const {
for(auto& var : vars) {
if(var_set.find(var) != var_set.end())
throw compiler_error(
std::string("type variable ") +
var + std::string(" used twice in data type definition."), loc);
"type variable " + var +
" used twice in data type definition.", loc);
var_set.insert(var);
return_app->arguments.push_back(type_ptr(new type_var(var)));
}