title: Swift compiling bug "Unknown type name" and "Expected a type"
body: <p>I'm running into an issue where my Swift code compiles fine but then the generated -Swift.h file has an error in it...</p>
  
  <p>Here is an example of what I'm doing:</p>
  
  <pre><code>class MyScene : CCLayer {
      var ctrl : CCControlSlider?
  }
  </code></pre>
  
  <p>This compiles just fine in the swift code and I can see the methods on the ctrl object just fine as well. I have the following in my bridge header:</p>
  
  <pre><code>#import "cocos2d.h"
  #import "CCControlSlider.h"
  </code></pre>
  
  <p>This works perfectly fine in other classes that use other libraries which work correctly.  Also note that I can use this CCControlSlider class in my objective-c classes with no issues at all as well.</p>
  
  <p>Here is what happens on the generated -Swift.h file:</p>
  
  <pre><code>SWIFT_CLASS("_TtC15MyProject10MyScene")
  @interface MyScene : CCLayer
  @property (nonatomic) CCControlSlider * ctrl;
  @end
  </code></pre>
  
  <p>The property has the error "Unknown type name "CCControlSlider" and if it's used in a method then it gives the error "Expected a type".</p>
  
  <p>This works just fine using other classes but for some reason this one class gives this compiler error only in the generated header file and only when used from Swift.</p>
  
  <p>I guess what I'm wondering is, am I doing something wrong or is this just a bug??</p>