title: Redefinition of 'Comment' as different kind of symbol in swift
body: <p>I have a class <code>Comment</code> declared as such:</p>
  <pre><code>public class Comment: NSManagedObject {
      vars and methods...
  }
  </code></pre>
  <p>When I try to compile my project, I get an error that reads:</p>
  <blockquote>
  <p>Redefinition of 'Comment' as different kind of symbol</p>
  </blockquote>
  <p>It highlights this line in the generated <code>.h</code> file: <code>@interface Comment : NSManagedObject</code>, and it tells me that the original declaration of <code>Comment</code> is in <code>AIFF.h</code> (something part of Foundation) and the line of the declaration is: <code>typedef struct Comment                  Comment;</code>.</p>
  <p>I've only recently gotten this problem, and I've built the project with a <code>Comment</code> object successfully before. Why would an error like this happen in Swift?</p>
  <h1>Edit</h1>
  <p>If I remove the <code>NSManagedObject</code> superclass it compiles...</p>