// 故意编译失败:String 不能用 Int 下标。 // 复现:swiftc Diagnostics/IntIndex.swift let text = "abc" let first = text[0] print(first)