Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence #file/#filePath warnings in XCTest #228

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

glbrntt
Copy link
Contributor

@glbrntt glbrntt commented Jun 30, 2020

Motivation:

Swift 5.3 warns when #file is passed to a function expecting
#filePath even though the values are currently the same.

Modifications:

  • Wrap file in parentheses to silence warnings.

Result:

  • No warnings, uglier code

Motivation:

Swift 5.3 warns when `#file` is passed to a function expecting
`#filePath` even though the values are currently the same.

- swiftlang/swift#32445
- https://bugs.swift.org/browse/SR-12936
- https://bugs.swift.org/browse/SR-12934
- https://bugs.swift.org/browse/SR-13041

Modifications:

- Wrap `file` in parentheses to silence warnings.

Result:

- No warnings, uglier code
@glbrntt glbrntt requested a review from Lukasa June 30, 2020 12:28
@glbrntt glbrntt added the semver/patch No public API change. label Jun 30, 2020
@glbrntt glbrntt added this to the 2.8.0 milestone Jun 30, 2020
@Lukasa
Copy link
Contributor

Lukasa commented Jun 30, 2020

Hit #229

@Lukasa
Copy link
Contributor

Lukasa commented Jun 30, 2020

@swift-nio-bot test this please

@Lukasa Lukasa merged commit d381bc5 into apple:master Jun 30, 2020
@glbrntt glbrntt deleted the gb-file-filepath branch June 30, 2020 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants