示例工程 05-control-flow-pattern-matching
05-control-flow-pattern-matching/Diagnostics/README.md
# Diagnostics
三个文件**故意编译失败**,用来复现第 05 章「报错现场」的真实诊断。
```bash
swiftc Diagnostics/NonExhaustive.swift # error: switch must be exhaustive
swiftc Diagnostics/GuardFallsThrough.swift # error: 'guard' body must not fall through
swiftc Diagnostics/FallthroughBinding.swift # error: cannot find 'number' in scope
```