示例工程 57-ios-quality-gates

57-ios-quality-gates/Diagnostics/DestinationInt.swift

swift · 0.2 KB

// 故意编译失败:destination 是字符串,不能赋整数。
// 复现:swiftc -typecheck Diagnostics/DestinationInt.swift
let destination: String = 42