Name mangling in URL(string:relativeTo:)


(Marko Havu) #1

I found the following name mangling issue:

import Foundation

if let url = URL(string: "https://www.elementscompiler.com") {
    // This is correct in Swift 3:
    let download = URL(string: "elements/download.aspx", relativeTo: url)
    // but it results in: Parameter should be labeled "relativeToURL"
}

(marc hoffman) #2

Same as the other thread. I’ll see what we can do to improve this area, but it’s never going to 100% match Apple’s names, until they make that consistent :(.