title: How do I access global variables in local scope without "possibly used before declaration" -errors?
body: <p>I'm getting this warning: <code>WARNING: $a possibly used before declaration.</code> for my function:</p>
  
  <pre><code>Func test()
      If (IsDeclared("a")) Then
          ConsoleWrite($a)
      Else
          ConsoleWrite("Not declared")
      EndIf
  EndFunc
  
  Global $a = "test"
  
  test()
  </code></pre>
  
  <p>Can be avoided by using the global variable as a parameter to the function. But I need this construct because it's tied to a file-operation which I don't want to execute every time I need the variable.</p>
  
  <p>How can I do this without generating a "possibly used before declaration" -error?</p>