示例工程 46-xcode-project-anatomy

46-xcode-project-anatomy/Diagnostics/URLPathInt.swift

swift · 0.2 KB

// 故意编译失败:文件路径是字符串,不是整数。
// 复现:swiftc -typecheck Diagnostics/URLPathInt.swift
import Foundation
 
let url = URL(fileURLWithPath: 42)