Seemingly unrelated closure changes type signature when using WKWebView.isInspectable
#76171
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
The following behavior seems like a bug in the swift compiler that ships with Xcode 16 beta 6.
Also filed as FB14783405
Hoping to see this fixed before Xcode 16 stable.
Reproduction
Add the following code snippet to a new iOS app project using Xcode 16 beta 6 and observe the error an warning called out in the comments within the
itemProvider()
method:Now, comment out the line
isInspectable = true
and observe that the error and warning disappear.Expected behavior
Using or not using
WKWebView.isInspectible
has no bearing on the type signature of a completion closure fromNSItemProvider
.Environment
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Additional information
No response
The text was updated successfully, but these errors were encountered: