我想在AnyObject类型的Array上使用function contains
import UIKit var resultArray: Array<AnyObject> = Array() resultArray.append(50) resultArray.append(false) resultArray.append("Test string") let found = contains(resultArray,50)
我收到错误:
Type 'AnyObject -> L' does not conform to protocol 'IntegerLiteralConvertible'