File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4072,7 +4072,8 @@ void FileUnit::getTopLevelDeclsWithAuxiliaryDecls(
4072
4072
getTopLevelDecls (nonExpandedDecls);
4073
4073
for (auto *decl : nonExpandedDecls) {
4074
4074
decl->visitAuxiliaryDecls ([&](Decl *auxDecl) {
4075
- results.push_back (auxDecl);
4075
+ if (!isa<ExtensionDecl>(auxDecl))
4076
+ results.push_back (auxDecl);
4076
4077
});
4077
4078
results.push_back (decl);
4078
4079
}
Original file line number Diff line number Diff line change 5
5
// RUN: %target-swift-frontend -swift-version 5 -typecheck -load-plugin-library %t/%target-library-name(MacroDefinition) %s -disable-availability-checking -dump-macro-expansions > %t/expansions-dump.txt 2>&1
6
6
// RUN: %FileCheck -check-prefix=CHECK-DUMP %s < %t/expansions-dump.txt
7
7
// RUN: %target-typecheck-verify-swift -swift-version 5 -load-plugin-library %t/%target-library-name(MacroDefinition) -module-name MacroUser -DTEST_DIAGNOSTICS -swift-version 5
8
- // RUN: %target-build-swift -swift-version 5 -load-plugin-library %t/%target-library-name(MacroDefinition) %s -o %t/main -module-name MacroUser -swift-version 5
8
+ // RUN: %target-build-swift -swift-version 5 -load-plugin-library %t/%target-library-name(MacroDefinition) %s -o %t/main -module-name MacroUser -swift-version 5 -emit-tbd -emit-tbd-path %t/MacroUser.tbd
9
9
// RUN: %target-codesign %t/main
10
10
// RUN: %target-run %t/main | %FileCheck %s
11
11
You can’t perform that action at this time.
0 commit comments