title: Error about static local functions after adding a method
body: <p>I have just started C# and I'm using functions to start to set up a basic login system, however, when I set up a new function it gives me his error:</p>
  
  <blockquote>
    <p>Error CS8652  The feature 'static local functions' is currently in
    Preview and <em>unsupported</em>. To use Preview features, use the 'preview'
    language version.</p>
  </blockquote>
  
  <p>This is the code that is showing the problem:</p>
  
  <pre><code>using System;
  
  namespace Sub_routines___Repetition_of_letter
  {
      class Program
      {
          public static void homepage()
          {
              bool exit = false;
              while (exit == false)
              {
                  // some code
              }
  
              static void Main(string[] args)
              {
                  homepage();
              }    
          }
      }    
  }
  </code></pre>
  
  <p>The code error that I am told is that on line 82, which is</p>
  
  <pre><code>static void Main(string[] args)
  </code></pre>