Avatar
@swift-main @globalActor final actor FooActor { static let shared = FooActor() } struct Foo { var value = 0 } extension Foo: @FooActor CustomStringConvertible { var description: String { "VALUE: \(value)" } } nonisolated func printFoo() { let foo = Foo() print(foo) } printFoo()