Skip to content

Commit 2802522

Browse files
authored
Explicitly import Foundation in IssueTests.swift. (#567)
If XCTest is unavailable, IssueTests.swift fails to compile due to a Foundation dependency (that was transitively satisfied by importing XCTest which reexports Foundation). Add an explicit import of Foundation in this file to resolve the issue. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 786ade7 commit 2802522

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/TestingTests/IssueTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,9 @@ final class IssueTests: XCTestCase {
14151415
}
14161416
#endif
14171417

1418-
#if !SWT_NO_SNAPSHOT_TYPES
1418+
#if canImport(Foundation) && !SWT_NO_SNAPSHOT_TYPES
1419+
import Foundation
1420+
14191421
@Suite("Issue Codable Conformance Tests")
14201422
struct IssueCodingTests {
14211423

0 commit comments

Comments
 (0)