Skip to content

[SR-13624] ?? is not differentiable #56059

@rxwei

Description

@rxwei
Previous ID SR-13624
Radar rdar://problem/69718867
Original Reporter @rxwei
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels New Feature, AutoDiff
Assignee None
Priority Medium

md5: 9f2ac7e91180ccd0c60150baee8acbfd

is blocked by:

  • SR-13627 Derivative registration doesn't work on rethrowing functions

Issue Description:

@differentiable
public func foo(x: Float?) -> Float {
    x ?? 1
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions