Avatar
swiftbot BOT 9/6/2018 2:51 AM
Author icon
kishikawakatsumi
import Foundation typealias Path = String func save(path: Path) -> String { return "Saved" } var p: Path = "/tmp/xxx" print(save(path: p)) var s: String = "/tmp/xxx" print(save(path: s)) print(save(path: "/tmp/xxx"))
Version:
swift-4.1.1-RELEASE
Output:
Saved Saved Saved
Error: