File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -6976,7 +6976,7 @@ void Serializer::writeAST(ModuleOrSourceFile DC) {
69766976
69776977 for (auto D : fileDecls) {
69786978 if (isa<ImportDecl>(D) || isa<MacroExpansionDecl>(D) ||
6979- isa<TopLevelCodeDecl>(D)) {
6979+ isa<TopLevelCodeDecl>(D) || isa<UsingDecl>(D) ) {
69806980 continue ;
69816981 }
69826982
Original file line number Diff line number Diff line change 1+ // RUN: %empty-directory(%t)
2+ // RUN: %target-swift-frontend -emit-module -o %t %s -module-name Using -enable-experimental-feature DefaultIsolationPerFile
3+ // RUN: %target-swift-frontend -typecheck -I %t %s -module-name main -DMAIN -verify -enable-experimental-feature DefaultIsolationPerFile
4+
5+ // REQUIRES: swift_feature_DefaultIsolationPerFile
6+
7+ using @MainActor
8+
9+ public func test( ) { }
You can’t perform that action at this time.
0 commit comments