Files
swift-mirror/test/AutoDiff/compiler_crashers_fixed/Inputs/tf1202-differentiability-witness-dead-function-elimination.swift
Dan Zheng c142fcf6e2 [AutoDiff] Add SynthesizedFileUnit TBDGen/serialization tests.
Upstream `SynthesizedFileUnit` failing tests from TF-1239.
2020-04-08 21:22:06 -07:00

10 lines
222 B
Swift

import _Differentiation
@inlinable
@differentiable(where T: Differentiable)
public func identity<T>(_ x: T) -> T { x }
public func foo<T: Differentiable>(_ f: @differentiable (T) -> T = identity) -> T {
fatalError()
}