mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-15 00:18:06 -05:00
Fix void constructors
This commit is contained in:
@@ -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),
|
||||
},
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user