some
cannot be used instead of a generic placeholder for never-returned type inference
#73558
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
some Any
works for most replacements of generic placeholders that only get used one time. But it doesn't work with whatever type inference errors use.Reproduction
Compiles:
The
throw
function is very useful. I haven't had a use for similar, when it comes toNever
returns, but the same problem occurs there:✅:
❌:
Expected behavior
The versions using
some Any
compile.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: