title: Function giving strange error?
body: <pre><code>    function returnNumPlus1(num)
      return num + 1
  end
  
  print(returnNumPlus1(0))
  
  print(returnNumPlus1(9000))
  
  local func1 = returnNumPlus1
  print(func1(11))
  </code></pre>
  
  <p>I was testing it to try to get it to work without error, but i always get the same error as i post below. Im fairly new to lua, so i hope i can get this to work :D
  and gives off the error:</p>
  
  <pre><code>stdin:1: attempt to call global 'func1' (a nil value)
  stack traceback
          stdin:1: in main chunk
          [C]: ?
  </code></pre>
  
  <p>does anyone know why? Thanks!</p>