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 92a3887 commit 43a168aCopy full SHA for 43a168a
lib/Sema/TypeCheckDecl.cpp
@@ -6101,7 +6101,7 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
6101
// it is in the same module, update the vtable.
6102
if (auto *baseDecl = dyn_cast<ClassDecl>(base->getDeclContext())) {
6103
if (baseDecl->hasKnownSwiftImplementation() &&
6104
- !base->isDynamic() &&
+ !base->isDynamic() && !isKnownObjC &&
6105
override->getDeclContext()->isExtensionContext()) {
6106
// For compatibility, only generate a warning in Swift 3
6107
TC.diagnose(override, (TC.Context.isSwiftVersion3()
0 commit comments