示例工程 38-gestures

38-gestures/Diagnostics/README.md

markdown · 0.4 KB

# Diagnostics
 
三个文件**故意编译失败**,用来复现第 38 章「报错现场」的真实诊断。
 
```bash
swiftc -typecheck Diagnostics/GestureStateLet.swift      # error: property wrapper can only be applied to a 'var'
swiftc -typecheck Diagnostics/GestureMaskWrongCase.swift # error: type 'GestureMask' has no member 'gestures'
swiftc -typecheck Diagnostics/MagnifyWrongProperty.swift # error: 'MagnifyGesture.Value' has no member 'scale'
```