Fix void constructors

This commit is contained in:
Andrew Morris
2022-05-27 16:33:56 +10:00
parent f49b78aae6
commit 6cb70eebbc

View File

@@ -386,11 +386,11 @@ impl Compiler {
}
defn.push(format!(
"@{} = class(@{}, {{",
"@{} = class({}, {{",
defn_name,
match constructor_defn_name {
None => "void".to_string(),
Some(d) => d,
Some(d) => format!("@{}", d),
},
));