title: Calling a function from another class in Swift
body: <p>I have two classes, Bug and Test. I want to call the bugForName function from the Test class but I get this error: </p>
  
  <blockquote>
    <p>"Cannot invoke 'bugForName' with an argument list of type '(String)'</p>
  </blockquote>
  
  <pre><code>import UIKit
  
  class Bug {
  
      func bugForName(name: String) -&gt; String {
          return "This bug: \(name)"
      }
  }
  
  class Test {
  
      func whatBug() {
          let bugName = "Roach"
  
          println(Bug.bugForName(bugName))
      }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/wtTUu.png" alt="Autocomplete"></p>
  
  <p>Am I missing something or is this a bug in Swift?</p>