title: weird swift issue when defining class (segmentation 11)
body: <p>so i am trying to define a swift class that will work in both swift and objective-c.</p>
  
  <p>When i try this way</p>
  
  <pre><code>    import Foundation
  
          @objc class TestClass
          {
  
              private var m_FirstName : String
              private var m_LastName  : String
              private var m_Id : String
  
          init()
          {
  
              m_FirstName = ""
              m_LastName = ""
              m_Id = "userIdNotSet-badescuga"
              }
  
           init(firstName:String, lastName:String, id:String)
              {
                  m_FirstName = firstName
                  m_LastName = lastName
                      m_Id = id
                  }
          }
  </code></pre>
  
  <p>i get a weird error:</p>
  
  <blockquote>
    <p>Command failed due to signal: Segmentation fault: 11</p>
  </blockquote>
  
  <p>which is somewhat understandable because i don't have a <code>String</code> class in objective-c. But even if i change all the <code>String</code> class objects to <code>NSString</code> i still get the same error.</p>
  
  <p>What am i doing wrong?? I using Xcode 6.1.1 and i've also tried it on xcode 6.2.3 Beta </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I also tried inheriting from the NSObject class with the same result: i get the same error</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>I get the error when i'm trying to compile the project. I am not using this class in any way. It is just for test purposes. </p>