# Diagnostics 三个文件**故意编译失败**,用来复现第 39 章「报错现场」的真实诊断。 ```bash swiftc -typecheck Diagnostics/KeyPressReturnsBool.swift # error: cannot convert 'Bool' to 'KeyPress.Result' swiftc -typecheck Diagnostics/FocusStateLet.swift # error: property wrapper can only be applied to a 'var' swiftc -typecheck Diagnostics/BindingInsteadOfFocusState.swift # error: cannot convert 'Binding' to 'FocusState.Binding' ```