Remove Void (#540)

Implements resolution of #443.
This commit is contained in:
Geoff Romer
2021-06-01 12:48:04 -07:00
committed by GitHub
parent e619d3d632
commit c903eb3133
6 changed files with 69 additions and 5 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ auto Value::MakeStructTypeVal(std::string name, VarValues* fields,
return v;
}
auto Value::MakeVoidTypeVal() -> const Value* {
auto Value::MakeUnitTypeVal() -> const Value* {
auto* v = new Value();
v->tag = ValKind::TupleV;
v->u.tuple.elements = new std::vector<TupleElement>();