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
Current behavior:
If you build it with `swiftc`, the error is correctly produced.
If you build it inside a Swift package with `swift build` (debug configuration), it will build successfully. This is not the right behavior.
If you build it inside a Swift package with `swift build -c release`, it will produce the error as expected.
This is a serious issue that could cause a lot of linker errors on undefined symbols to slip through.
The text was updated successfully, but these errors were encountered:
Turns out the @derivative type checking logic doesn't respect -enable-testing. Internal declarations in debug SwiftPM builds are treated as effectively public.
Additional Detail from JIRA
md5: e31be676d7860a84a592e19e506e2ee8
Issue Description:
The following code should cause the type checker to emit an error saying the derivative function is missing
@usableFromInline
.Reproducer:
Current behavior:
If you build it with `swiftc`, the error is correctly produced.
If you build it inside a Swift package with `swift build` (debug configuration), it will build successfully. This is not the right behavior.
If you build it inside a Swift package with `swift build -c release`, it will produce the error as expected.
This is a serious issue that could cause a lot of linker errors on undefined symbols to slip through.
The text was updated successfully, but these errors were encountered: