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 @@ -6968,7 +6968,7 @@ void Serializer::writeAST(ModuleOrSourceFile DC) {
69686968
69696969 for (auto D : fileDecls) {
69706970 if (isa<ImportDecl>(D) || isa<MacroExpansionDecl>(D) ||
6971- isa<TopLevelCodeDecl>(D)) {
6971+ isa<TopLevelCodeDecl>(D) || isa<UsingDecl>(D) ) {
69726972 continue ;
69736973 }
69746974
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