title: Swift - Type has no member
body: <p>I have a basic class named <code>APIGroup</code> that exists for the sole purpose of subclassing (it is not [yet] used for anything but certain <code>static</code> properties that are accessed by the subclasses). It looks somewhat like this:</p>
  
  <pre class="lang-swift prettyprint-override"><code>public class APIGroup {
      public static let someProperty : String = "I am a property!"
  }
  </code></pre>
  
  <p>And I have a subclass, <code>Track</code>, which defines a <em>type</em> method <code>search</code> as follows:</p>
  
  <pre class="lang-swift prettyprint-override"><code>public class Track : APIGroup {
      public static func search(name: String) -&gt; Void {
          print("Track search initiated. Name: \(name)")
          print("And the property is: \(someProperty)")
      }
  }
  </code></pre>
  
  <p>These two classes are defined in separate files in the same module. In another target, I import the module and try to call:</p>
  
  <pre class="lang-swift prettyprint-override"><code>import MyModule
  
  MyModule.Track.search("testing...")
  </code></pre>
  
  <p>But this throws: <code>Type 'Track' has no member 'search'</code>. What am I doing wrong?</p>