hi @Tolga, and welcome to the swift forums. you're correct to wonder about this behavior – this issue was raised somewhat recently in this post, after which it was diagnosed as an implementation bug. i think this should be fixed in the upcoming 6.2 compiler release, where mutable statics within actors should be treated in the same manner as mutable global variables (namely, they require a global actor isolation annotation, or must in some other way be Sendable).
1 Like