title: Unary operator ++ cannot be applied to an operand of type Int
body: <p>Why does the following swift code bring me the error "Unary operator '++' cannot be applied to an operand of type 'Int'" ???  (using swift-1.2 on Xcode-6.3.2)</p>
  
  <pre><code>struct Set {
  
      var player1Games: Int
      var player2Games: Int
  
      init() {
          self.player1Games = 0
          self.player2Games = 0
      }
  
      func increasePlayer1GameScore () {
          player1Games++   // error: Unary operator '++' cannot be applied to an operand of type 'Int'
      }
  
      func increasePlayer2GameScore () {
          player2Games++   // error: Unary operator '++' cannot be applied to an operand of type 'Int'
      }
  
  }
  </code></pre>