Skip to content

Commit 01676a2

Browse files
authored
Merge pull request #173 from modocache/sr-1901-workaround
[SR-1901] Use final to prevent linker errors
2 parents 3b6c476 + 6c84f87 commit 01676a2

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

Sources/XCTest/Public/XCTestCase.swift

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,10 @@ open class XCTestCase: XCTest {
5353
}
5454

5555
/// The set of expectations made upon this test case.
56-
/// - Note: FIXME: This is meant to be a `private var`, but is marked as
57-
/// `public` here to work around a Swift compiler bug on Linux. To ensure
58-
/// compatibility of tests between swift-corelibs-xctest and Apple XCTest,
59-
/// this property should not be modified. See
60-
/// https://bugs.swift.org/browse/SR-1129 for details.
61-
public var _allExpectations = [XCTestExpectation]()
56+
final internal var _allExpectations = [XCTestExpectation]()
6257

6358
/// An internal object implementing performance measurements.
64-
/// - Note: FIXME: This is meant to be a `internal var`, but is marked as
65-
/// `public` here to work around a Swift compiler bug on Linux. To ensure
66-
/// compatibility of tests between swift-corelibs-xctest and Apple XCTest,
67-
/// this property should not be modified. See
68-
/// https://bugs.swift.org/browse/SR-1129 for details.
69-
public var _performanceMeter: PerformanceMeter?
59+
final internal var _performanceMeter: PerformanceMeter?
7060

7161
open override var testRunClass: AnyClass? {
7262
return XCTestCaseRun.self

0 commit comments

Comments
 (0)