// 故意编译失败:String.Index 不是 Int。 // 复现:swiftc Diagnostics/IndexAsInt.swift let text = "abc" let index: Int = text.startIndex print(index)