Fix KeyPathRefining for Xcode 10.0

This commit is contained in:
Gwendal Roué committed 2020-01-24 07:50:12 +01:00
1 parent 9dcd0b8f42
commit a3c43efb85
1 file changed
+2 -1
+2 -1
View File
@@ -20,7 +20,8 @@ extension KeyPathRefining {
return result
}
#if compiler(<5.1)
#if compiler(>=5.1)
#else
@inlinable
func with<T>(_ keyPath: WritableKeyPath<Self, T?>, _ value: T) -> Self {
var result = self