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 5800336 commit fe2ca4cCopy full SHA for fe2ca4c
lib/Sema/TypeCheckDeclPrimary.cpp
@@ -1961,7 +1961,8 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
1961
(void)ID->getDecls();
1962
1963
auto target = ID->getModule();
1964
- if (target->isNonUserModule() && // target module is in distributed SDK
+ if (!target->isNonSwiftModule() && // target is a Swift module
1965
+ target->isNonUserModule() && // target module is in distributed SDK
1966
!getASTContext().LangOpts.PackageName.empty() &&
1967
getASTContext().LangOpts.PackageName == target->getPackageName().str()) {
1968
// If reached here, a binary module (.swiftmodule) instead of interface of the
0 commit comments