[AutoDiff] Guard let optional unwrapping is not differentiable #79051
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
Closely related to #75280: the reproducer provided there now results in a compilation error instead of crash in Swift 6.0.3:
But, the following semantically equivalent function compiles successfully.
Compiler explorer link
Reproduction
Using Swift version 6.0.3, run
swiftc main.swift
.Expected behavior
Both should compile successfully
Environment
Tested on the following platforms.
Additional information
No response
The text was updated successfully, but these errors were encountered: