示例工程 27-combine-to-async
27-combine-to-async/Diagnostics/README.md
# Diagnostics
三个文件**故意编译失败**,用来复现第 27 章「报错现场」的真实诊断。
```bash
swiftc -typecheck Diagnostics/PublishedInStruct.swift # error: @Published is only available on properties of classes
swiftc -warnings-as-errors Diagnostics/UnusedSink.swift # error: result of call to 'sink' is unused
swiftc -typecheck Diagnostics/PublishedComputed.swift # error: property wrapper cannot be applied to a computed property
```