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) {
6976
6976
6977
6977
for (auto D : fileDecls) {
6978
6978
if (isa<ImportDecl>(D) || isa<MacroExpansionDecl>(D) ||
6979
- isa<TopLevelCodeDecl>(D)) {
6979
+ isa<TopLevelCodeDecl>(D) || isa<UsingDecl>(D) ) {
6980
6980
continue ;
6981
6981
}
6982
6982
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