title: Swift function that return two strings fail when its in loop
body: <p>I Wrote a function that return two Strings, when calling the function regularly its works fine, but when I'm running the function through loop, I'm getting this error:</p>
  
  <p>Thread 1: EXC_BAD_ACCESS (code=2, address=0xbfffcba0)</p>
  
  <pre><code>override func viewDidLoad()
  {
      super.viewDidLoad()
      test()
  }
  
  func test()
  {
      var funcs = [checkButton]
      var a = checkButton(value: 1) // Runs OK
      for f in funcs{
          var result = f(value: 1) // Fail
      }
  }
  
  func checkButton(#value: Int) -&gt; (location: String, pattern: String){
      return ("abc","cba")
  }
  </code></pre>
  
  <p><strong>Update:</strong></p>
  
  <p>I'm using Xcode 6 beta 2, and running Mavericks on VMware Workstation.</p>
  
  <p>Also, I've just created new clean project with that code and still getting the error.</p>