Crash when assigning a function with wrapped parameter to a variable. #77392
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
Description
A problem arises when you try to assign a function with a wrapped parameter to a variable. A crash occurs when the variable has a type where the parameter is a wrapped type, not the
wrappedValue
's type.Reproduction
Stack dump
Expected behavior
Compiler emits an error about mismatched types. Also, in
f1
case, does complier really unable to infer type?Environment
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: