示例工程 41-system-integration
41-system-integration/Diagnostics/README.md
# Diagnostics
三个文件**故意编译失败**,用来复现第 41 章「报错现场」的真实诊断。
```bash
swiftc -typecheck Diagnostics/FileDocumentWrongType.swift # error: does not conform to protocol 'FileDocument'
swiftc -typecheck Diagnostics/DropNotTransferable.swift # error: requires that 'Payload' conform to 'Transferable'
swiftc -typecheck Diagnostics/ImporterStringTypes.swift # error: cannot convert '[String]' to '[UTType]'
```