@_disfavoredOverload is required to "disambiguate" in a non-throwing context #73880
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
No response
Reproduction
Given these two overloads…
…this error is produced:
…unless
@_disfavoredOverload
is added to the overload that involves throwing.However,
@_disfavoredOverload
is not required to "disambiguate" whentry
is involved:Expected behavior
The lack of
try
provides the necessary disambiguation.Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: