From 0d7116eb55e89d87db9e9fbb228fde12f72d8f31 Mon Sep 17 00:00:00 2001 From: Luca Torella Date: Mon, 26 Mar 2018 00:30:18 +0200 Subject: [PATCH] Fix Swift 4.1 compiler issue This code doesn't compile anymore with Swift 4.1 beta. Not sure if this is a compiler regression or if it's expected. --- SharedCode/Utilities.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SharedCode/Utilities.swift b/SharedCode/Utilities.swift index 2ebae9b..97b4555 100644 --- a/SharedCode/Utilities.swift +++ b/SharedCode/Utilities.swift @@ -42,7 +42,7 @@ extension Sequence { } -extension Sequence where Iterator.Element: AnyObject { +extension Sequence where Element: AnyObject { public func containsObjectIdentical(to object: AnyObject) -> Bool { return contains { $0 === object } }