最近在跟著斯坦福大學的ISO8開發學習下面的代碼,編譯出錯funcperformOperation(operation:(Double,Double)->Double){ifoperandStack.count>=2{displayValue=operation(operandStack.removeLast(),operandStack.removeLast())enter()}}funcperformOperation(operation:Double->Double){ifoperandStack.count>=1{displayValue=operation(operandStack.removeLast())enter()}}出現下面的錯誤:Method'performOperation'withObjective-Cselector'performOperation:'conflictswithpreviousdeclarationwiththesameObjective-Cselector
swift編譯錯誤
郎朗坤
2019-04-23 15:12:57