Skip to content

Commit c9a2b10

Browse files
committed
fix: allow constructors list be empty
1 parent de726de commit c9a2b10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/manifest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ namespace {
334334

335335
// Validate constructors if present
336336
if (classObj.constructors) {
337-
if (classObj.constructors->empty()) {
337+
/*if (classObj.constructors->empty()) {
338338
return MakeError("Class '{}': constructors list cannot be empty if specified", classObj.name);
339-
}
339+
}*/
340340

341341
for (size_t i = 0; i < classObj.constructors->size(); ++i) {
342342
const auto& constructor = (*classObj.constructors)[i];

0 commit comments

Comments
 (0)