Skip to content

Commit 035d492

Browse files
committed
Fix printing of 'isolated' parameters.
Fixes rdar://83316058.
1 parent cc87566 commit 035d492

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3414,9 +3414,6 @@ void PrintAST::printOneParameter(const ParamDecl *param,
34143414

34153415
printAttributes(param);
34163416

3417-
if (param->isIsolated())
3418-
Printer << "isolated ";
3419-
34203417
printArgName();
34213418

34223419
TypeLoc TheTypeLoc;

test/ModuleInterface/actor_isolation.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
@available(SwiftStdlib 5.1, *)
1616
public actor SomeActor {
1717
nonisolated func maine() { }
18+
19+
// CHECK: nonisolated public func takesIsolated(other: isolated {{(Test.)?}}SomeActor)
20+
public nonisolated func takesIsolated(other: isolated SomeActor) { }
1821
}
1922

2023
// CHECK: @globalActor public struct SomeGlobalActor

0 commit comments

Comments
 (0)