You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug 575d7c0 added XCTestDynamicOverlay as an @_exported import meaning its symbols are imported wherever you import TCA.
As a result, if you now import ComposableArchitecture and XCTest in the same file, you will get a compile error: Ambiguous use of 'XCTFail(_:file:line:)'
To Reproduce
Create a test file in a test target and import both TCA and XCTest.
Its not possible to explicitly reference the XCTest version using XCTest.XCTFail so you need to instead reference XCTestDynamicOverlay.XCTFail which is probably not desirable when you know XCTest is available.
Expected behavior
TCA should not export the XCTestDynamicOverlay symbols - if you want to use XCTestDynamicOverlay in your own library or helper code you should import it explicitly.
Describe the bug
575d7c0 added
XCTestDynamicOverlay
as an@_exported import
meaning its symbols are imported wherever you import TCA.As a result, if you now import
ComposableArchitecture
andXCTest
in the same file, you will get a compile error:Ambiguous use of 'XCTFail(_:file:line:)'
To Reproduce
Create a test file in a test target and import both TCA and XCTest.
Its not possible to explicitly reference the
XCTest
version usingXCTest.XCTFail
so you need to instead referenceXCTestDynamicOverlay.XCTFail
which is probably not desirable when you know XCTest is available.Expected behavior
TCA should not export the XCTestDynamicOverlay symbols - if you want to use
XCTestDynamicOverlay
in your own library or helper code you should import it explicitly.Environment
Additional context
Originally opened as a bug here: pointfreeco/swift-issue-reporting#12
The text was updated successfully, but these errors were encountered: