title: Swift - Getter and Setter for Computed Properties as String type
body: <p>Hello im really new to Swift development with no Objective-C background, although I have a strong fundamentals in java, swift has a very stiff learning curve for me, well I'll go straight to my question, but ill post the code first</p>
  
  <pre><code> class Vehicle {
  
      var gear : String {
  
          get {
              return self.gear
          }
  
          set {
              self.gear = newValue
          }
      }
  }
  
  var vehicle = Vehicle()
  vehicle.gear = "ADASD"
  </code></pre>
  
  <p>im having a compiler error saying</p>
  
  <pre><code>./run-swift: line 18: 30295 Segmentation fault: 11  gtimeout -k $TIMEOUT_KILL_AFTER $TIMEOUT_DURATION $SWIFT_COMPILER -target $TARGET -sdk $SDK $OPTIMIZATION_LEVEL $INPUT_FILE -o $OUTPUT_FILE
  </code></pre>
  
  <p>i realy dont understand as why this simple code does not compile using a String type, if I change the variable declaration as Int type and assign a value to its property i have no problems at all.</p>