最近在跟着斯坦福大学的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
智慧大石
相关分类