Skip to content

[SR-6527] Linux: Empty URLComponents does not generate valid URL #3774

Open
@mbrandonw

Description

@mbrandonw
Previous ID SR-6527
Radar None
Original Reporter @mbrandonw
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, Linux
Assignee None
Priority Medium

md5: 22fd63926de4684cc07b905a8d223d78

Issue Description:

This code:

    let baseUrl = URL(string: "https://www.pointfree.co")
    let urlComponents = URLComponents()
    let url = urlComponents.url(relativeTo: baseUrl)

generates a valid `URL` on Darwin, but generates `nil` on Linux.

I am using Xcode 9.2 beta 9C34b, Swift 4.0.3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions