title: Missing argument for parameter #1 in call error for function with no params. Swift
body: <p>I am using xcode 6 beta 6 and I get this weird error for a function that has no params.</p>
  
  <p>Here is the function</p>
  
  <pre><code>func allStudents ()-&gt; [String]{
      var appDel:AppDelegate = (UIApplication.sharedApplication().delegate as AppDelegate)
      var context:NSManagedObjectContext = appDel.managedObjectContext!
      var request = NSFetchRequest(entityName: "Student")
      request.returnsObjectsAsFaults = false
      //Set error to nil for now
      //TODO: Give an actual error.
      var result:NSArray = context.executeFetchRequest(request, error: nil)
  
      var students:[String]!
      for child in result{
          var fullname:String = child.valueForKey("firstName") as String + " "
          fullname += child.valueForKey("middleName") as String + " "
          fullname += child.valueForKey("lastName") as String
          students.append(fullname)
      }
  
  
      return students
  }
  </code></pre>
  
  <p>and here is the call</p>
  
  <pre><code>var all = StudentList.allStudents()
  </code></pre>
  
  <p>Is this a bug or am I doing something wrong here?</p>