And to add to this, all it takes is changing actor MyActor to class MyActor to get the compiler to diagnose it (with -swift-version 6). Since static data is really just global data, it should be diagnosed the same way whether it's on an actor or some other type.
4 Likes