title: Thread 1: Exc_BAD_ACCESS(code=2, address=xxx-xxxx)
body: <p>I'm new to IOS dev and getting the following Thread 1: Exc_BAD_ACCESS(code=2, address=someaddress) when the getter is called from my XCtest:</p>
  
  <pre><code>var token:AccessToken?{
      set{ self.token = newValue }
      get{ return self.token }
  } 
  
  class AccessToken{
     var access_token:String
     var token_type:String
  
     init(access_token: String,token_type: String){
         self.access_token = access_token
         self.token_type = token_type
     } 
  }
  
  
  request.token! = AccessToken(access_token: "accessToken", token_type: "Bearer")
  </code></pre>
  
  <p>I'm figuring that I might be using the getter incorrectly however the compiler is not catching the problem</p>