最近在跟著斯坦福大學(xué)的ISO8開發(fā)學(xué)習(xí)下面的代碼,編譯出錯(cuò)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()}}出現(xiàn)下面的錯(cuò)誤:Method'performOperation'withObjective-Cselector'performOperation:'conflictswithpreviousdeclarationwiththesameObjective-Cselector
swift編譯錯(cuò)誤
郎朗坤
2019-04-23 15:12:57