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) {
6968
6968
6969
6969
for (auto D : fileDecls) {
6970
6970
if (isa<ImportDecl>(D) || isa<MacroExpansionDecl>(D) ||
6971
- isa<TopLevelCodeDecl>(D)) {
6971
+ isa<TopLevelCodeDecl>(D) || isa<UsingDecl>(D) ) {
6972
6972
continue ;
6973
6973
}
6974
6974
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