From 2a710d733bd84388ede09f51d3202354eade1e3b Mon Sep 17 00:00:00 2001 From: iMoeNya Date: Sat, 7 Apr 2018 20:22:09 +0800 Subject: [PATCH] both operands of "===" should be AnyObject --- Sample-Project-Chapter-1.1/Moody/Utilities.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sample-Project-Chapter-1.1/Moody/Utilities.swift b/Sample-Project-Chapter-1.1/Moody/Utilities.swift index ad9365f..b9b3652 100644 --- a/Sample-Project-Chapter-1.1/Moody/Utilities.swift +++ b/Sample-Project-Chapter-1.1/Moody/Utilities.swift @@ -11,7 +11,7 @@ import Foundation extension Sequence where Iterator.Element: AnyObject { func containsObjectIdentical(to object: AnyObject) -> Bool { - return contains { $0 === object } + return contains { $0 as AnyObject === object } } }