// 故意编译失败:URL(string:) 需要字符串,不是整数。 // 复现:swiftc -typecheck Diagnostics/URLFromInt.swift import Foundation let url = URL(string: 42)