Compare commits

...

1 Commits

Author SHA1 Message Date
Dylan Conway
cf46115f6d only if there are instance members 2023-02-13 13:44:25 -05:00

View File

@@ -17159,7 +17159,7 @@ fn NewParser_(
class.properties = class_properties.items;
if (instance_members.items.len > 0 or class.extends != null) {
if (instance_members.items.len > 0) {
if (constructor_function == null) {
var properties = ListManaged(Property).fromOwnedSlice(p.allocator, class.properties);
var constructor_stmts = ListManaged(Stmt).init(p.allocator);