Async assignment to a lazy local var causes Xcode 15.3 compiler crash

You are right, changing AsyncState from actor to class was simply making the access synchronous rather than async.

Likewise, if getX() is not async, the compiler does not crash.