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