示例工程 36-lists-and-navigation

36-lists-and-navigation/Diagnostics/README.md

markdown · 0.5 KB

# Diagnostics
 
三个文件**故意编译失败**,用来复现第 36 章「报错现场」的真实诊断。
 
```bash
swiftc -typecheck Diagnostics/RowNotIdentifiable.swift       # error: requires that 'Row' conform to 'Identifiable'
swiftc -typecheck Diagnostics/RouteNotHashable.swift         # error: requires that 'NotHashable' conform to 'Hashable'
swiftc -typecheck Diagnostics/MissingBindingProjection.swift # error: cannot find '$navigation' in scope
```