Ternary operator/if-expression not differentiable #79052
Labels
AutoDiff
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 #54195: the following throws a compilation error on Swift 6.0.3.
But, the following semantically equivalent function compiles successfully.
Compiler explorer link
Reproduction
In a single file
Run
swiftc main.swift
.Expected behavior
Should compile successfully.
Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: