We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4820d16 commit d4bb649Copy full SHA for d4bb649
lib/Sema/TypeCheckDecl.cpp
@@ -5613,7 +5613,7 @@ void TypeChecker::defineDefaultConstructor(NominalTypeDecl *decl) {
5613
if (auto *classDecl = dyn_cast<ClassDecl>(decl)) {
5614
// If the class has a superclass, we should have either inherited it's
5615
// designated initializers or diagnosed the absence of our own.
5616
- if (classDecl->getSuperclass())
+ if (classDecl->hasSuperclass())
5617
return;
5618
}
5619
0 commit comments