# Diagnostics 三个文件**故意编译失败**,用来复现第 21 章「报错现场」的真实诊断。 ```bash swiftc Diagnostics/ActorPropertyNoAwait.swift # error: actor-isolated property can not be referenced from a nonisolated context swiftc Diagnostics/NonisolatedMutation.swift # error: actor-isolated property can not be mutated from a nonisolated context swiftc Diagnostics/MainActorSyncCall.swift # error: call to main actor-isolated instance method in a synchronous nonisolated context ```