[SR-14362] Crash running closures accessed via Mirror #56720
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
run-time crash
Bug → crash: Swift code crashed during execution
Environment
Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
Target: x86_64-apple-darwin20.3.0
Apple Swift version 5.4 (swiftlang-1205.0.26.4 clang-1205.0.19.54)
Target: x86_64-apple-darwin20.3.0
Additional Detail from JIRA
md5: 656953fcd979edcfc3bb456375a2014f
Issue Description:
The following code crashes when f(object) is called
If instead I store `function` as `Any` as below then everything works
-There seems to have been a regression from 5.3
> 5.4 as well. While the following code works in 5.3.2 it fails in 5.4The text was updated successfully, but these errors were encountered: