示例工程 06-functions-closures

06-functions-closures/Diagnostics/MissingLabel.swift

swift · 0.2 KB

// 故意编译失败:调用点漏了参数标签。
// 复现:swiftc Diagnostics/MissingLabel.swift
func greet(person name: String) -> String {
    "hello, \(name)"
}
 
print(greet("Ada"))