示例工程 12-opaque-existential-types
12-opaque-existential-types/Diagnostics/README.md
# Diagnostics
三个文件**故意编译失败**,用来复现第 12 章「报错现场」的真实诊断。
```bash
swiftc Diagnostics/MismatchedOpaque.swift # error: return statements do not have matching underlying types
swiftc Diagnostics/TypealiasOpaque.swift # error: 'some' types are only permitted in properties, subscripts, and functions
swiftc Diagnostics/MisplacedSome.swift # error: 'some' should appear at the beginning of a composition
```