title: "'_' can only appear in a pattern or on the left side of an assignment"-Error when creating closure
body: <p>I'm creating a closure to call from a storyboard outside the framework I'm creating.
  However, when trying to implement said closure through the guidance of <a href="https://stackoverflow.com/a/44846816/12232029">this</a> SO post, I'm getting the following errors:</p>
  <pre><code>1. '_' can only appear in a pattern or on the left side of an assignment
  2. Consecutive statements on a line must be separated by ';'
  3. Expected expression
  </code></pre>
  <p>Here is the current code inside my swift file:</p>
  <pre><code>//Here is where I'm getting the mentioned 3 errors
  var sliderChangeforward: (UISlider) -&gt; Void { _ in }
  
  @IBAction func sliderDidChange(_ sender: UISlider){
      
      ...
  
      sliderChangeforward(sender)
      
  }
  </code></pre>
  <p>Any help is greatly appreciated.</p>