unwrapping multiple optionals in if statement

前端 未结 8 616
鱼传尺愫
鱼传尺愫 2020-11-28 07:38

I want to unwrap two optionals in one if statement, but the compiler complaints about an expected expression after operator at the password constant. What could be the reaso

8条回答
  •  清歌不尽
    2020-11-28 07:43

    Swift 4

    if let suggestions = suggestions, let suggestions1 = suggestions1 {
    
            XCTAssert((suggestions.count > suggestions1.count), "TEST CASE FAILED: suggestion is nil. delete sucessful");
    }
    

提交回复
热议问题