// 故意编译失败:同步非隔离上下文不能调用 @MainActor 方法。 // 复现:swiftc Diagnostics/MainActorSyncCall.swift @MainActor final class ViewModel { nonisolated init() {} func update() {} } func runSynchronously() { let model = ViewModel() model.update() }