Add Swift version check for differentiable features.

This commit is contained in:
Stephen Canon committed 2020-08-04 08:26:22 -04:00
1 parent 44cb9f2d4a
commit 1ec79f5270
3 files changed
+11 -13

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//
#if canImport(_Differentiation)
#if swift(>=5.3) && canImport(_Differentiation)
import _Differentiation
extension Complex: Differentiable