diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index 7d0a41094e..0b8373ec37 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -8296,10 +8296,7 @@ namespace Slang static bool _doesCtorExpectInitializerListUsage(ConstructorDecl* ctor) { - return ctor->containsOption(ConstructorTags::Synthesized) - && ctor->getParameters().getCount() != 0 - && !allParamHaveInitExpr(ctor); - // return ctor->findModifier(); + return ctor->findModifier(); } template