File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2873,12 +2873,13 @@ getActorIsolationForMainFuncDecl(FuncDecl *fnDecl) {
2873
2873
ASTContext &ctx = fnDecl->getASTContext ();
2874
2874
2875
2875
const bool isMainMain = fnDecl->isMainTypeMainMethod ();
2876
- const bool isMain$Main =
2876
+ const bool isMainInternalMain =
2877
2877
fnDecl->getBaseIdentifier () == ctx.getIdentifier (" $main" ) &&
2878
2878
!fnDecl->isInstanceMember () &&
2879
2879
fnDecl->getResultInterfaceType ()->isVoid () &&
2880
2880
fnDecl->getParameters ()->size () == 0 ;
2881
- const bool isMainFunction = isMainDeclContext && (isMainMain || isMain$Main);
2881
+ const bool isMainFunction =
2882
+ isMainDeclContext && (isMainMain || isMainInternalMain);
2882
2883
const bool hasMainActor = !ctx.getMainActorType ().isNull ();
2883
2884
2884
2885
return isMainFunction && hasMainActor
You can’t perform that action at this time.
0 commit comments